ServiceManagerService serviceManagerService
= ServiceManagerServiceImpl.getInstance();
assertNotNull(serviceManagerService);
assertTrue(serviceManagerService.hasService(TestComponent.ROLE));
TestComponent tc = (TestComponent)
serviceManagerService.lookup(TestComponent.ROLE);
tc.test();
serviceManagerService.release(tc);
}
catch(Exception e)
{
e.printStackTrace();