public void testTypeCreation() throws Exception {
handle = builder.newType(germanComponent());
handle.publish();
DeclarationHandle instance = builder.newInstance("german-service")
.name("german-hello")
.build();
instance.publish();
System.out.println(instance.getStatus().getMessage());
String filter = format("(instance.name=%s)", "german-hello");
osgiHelper.waitForService(HelloService.class, filter, 1000);
HelloService service = osgiHelper.getServiceObject(HelloService.class, filter);
assertEquals(service.hello("Guillaume"), "Hallo Guillaume");
instance.retract();
}