- Service helloService = _registry.register(new DefaultProvidedInterfaceDescriptor("hello", HelloService.class), helloObject);
- Service[] services = system.start("Bla", new Service[] { helloService } );
- assertEquals(1, services.length);
+ ProvidedInterface helloService =
+ new DefaultProvidedInterface("hello", HelloService.class);
+ helloService.publish(helloObject);
+ system.getRequiredServices()[0].setProvider(helloService);
+ system.start("Bla");
+ ProvidedInterface started = system.getProvidedServices()[0];