Object service = context.getRegistry().lookup(MyService.class.getName());
assertNotNull("MyService should not be null", myService);
service = context.getRegistry().lookupByType(MyService.class);
assertNotNull("MyService should not be null", myService);
context.stop();
}
@Test
public void camelContextFactoryBeanServiceRegistryTest() throws Exception {
CamelContextFactoryBean factoryBean = new CamelContextFactoryBean();