// At this point the domain contains my contribution, my composite and
// it's started, my application code can start using it
// Get the TestServiceComponent service
TestService service = domain.getService(TestService.class, "TestServiceComponent");
// Invoke the service
String result = service.ping("Bob");
assertEquals("Hello Bob", result);
// Stop my composite
domain.getCompositeActivator().stop(myComposite);
domain.getCompositeActivator().deactivate(myComposite);