super(true /* start test components bundle */);
}
@Test
public void testSimpleAnnotations() throws Throwable {
Ensure e = new Ensure();
ServiceRegistration er = register(e, Producer.ENSURE);
e.waitForStep(3, 10000); // Producer registered
ServiceRegistration er2 = register(e, Consumer.ENSURE);
er2.unregister(); // stop consumer
er.unregister(); // stop provider
// And check if components have been deactivated orderly.
e.waitForStep(10, 10000);
e.ensure();
stopTestBundle();
}