public void test_getStatusFor_delegates_to_stub() throws RemoteException {
    OpenVpnConfig config = new OpenVpnConfig(new File("/dev/null"));
    wrapper.onServiceConnected(COMPONENT_NAME, openVpnServiceStub);

    wrapper.getStatusFor(config);

    Mockito.verify(openVpnServiceStub).getStatusFor(Mockito.same(config));
  }
  public void test_getStatusFor_RemoteException_returns_stopped() throws RemoteException {
    OpenVpnConfig config = new OpenVpnConfig(new File("/dev/null"));
    Mockito.when(openVpnServiceStub.getStatusFor(config)).thenThrow(new RemoteException());
    wrapper.onServiceConnected(COMPONENT_NAME, openVpnServiceStub);

    OpenVpnState status = wrapper.getStatusFor(config);

    assertFalse(status.isStarted());
  }
  public void test_getStatusFor_RemoteException_disables_binding() throws RemoteException {
    OpenVpnConfig config = new OpenVpnConfig(new File("/dev/null"));
    Mockito.when(openVpnServiceStub.getStatusFor(config)).thenThrow(new RemoteException());
    wrapper.onServiceConnected(COMPONENT_NAME, openVpnServiceStub);

    wrapper.getStatusFor(config);

    assertFalse(wrapper.isBound());
  }