@Test
public void test_RegisterService_Async() {
// service unregistered
assertServiceUnavailable(TestService.class);
// register service in 2 sec
registerServiceAsync(getBundleContext(), TestService.class, new TestService(), null, 2, TimeUnit.SECONDS);
// service still unregistered
assertServiceUnavailable(TestService.class);
// service registered
assertServiceAvailable(TestService.class, 5, TimeUnit.SECONDS);
}