props2.put("instance.name", "foo2");
ComponentInstance ci1 = null, ci2 = null;
try {
ci1 = factory.createComponentInstance(props1);
ci2 = factory.createComponentInstance(props2);
} catch (Exception e) {
fail("Cannot instantiate foo providers : " + e.getMessage());
}
assertTrue("Check foo1 validity", ci1.getState() == ComponentInstance.VALID);