ComponentInstance ci = null;
Factory factory = Utils.getFactoryByName(getContext(), "org.apache.felix.ipojo.test.scenarios.component.PropertyModifier");
Properties props = new Properties();
props.put("cls", new String[] {FooService.class.getName()});
try {
ci = factory.createComponentInstance(props);
} catch (Exception e) {
fail(e.getMessage());
}
ServiceReference ref = Utils.getServiceReferenceByName(getContext(), CheckService.class.getName(), ci.getInstanceName());