public void test_connect_delegates_to_stub() throws RemoteException {
    wrapper.onServiceConnected(COMPONENT_NAME, openVpnServiceStub);
    OpenVpnConfig param = new OpenVpnConfig(new File("test"));

    wrapper.connect(param);

    Mockito.verify(openVpnServiceStub).connect(param);
  }
  public void test_connect_RemoteException_disables_binding() throws RemoteException {
    Mockito.doThrow(new RemoteException())
        .when(openVpnServiceStub)
        .connect(Mockito.any(OpenVpnConfig.class));
    wrapper.onServiceConnected(COMPONENT_NAME, openVpnServiceStub);

    wrapper.connect(new OpenVpnConfig(new File("test")));

    assertFalse(wrapper.isBound());
  }