assertThat(getBundleContext().getServiceReferences(ExampleDomain.class.getName(),
"(service.pid=example-remote)"), not(nullValue()));
assertThat(osgiService, not(nullValue()));
remoteConnector.getInvocationHistory().clear();
osgiService.doSomethingWithMessage("test");
assertThat(remoteConnector.getInvocationHistory().isEmpty(), is(false));
remoteConnector.stop();
boolean unregistered = false;