}
@Test
public void FetchImplThatHasComposite_tc029() {
CompositeType ct1 = (CompositeType) waitForComponentByName(null,
"S2Impl-composite-1");
// apam.waitForIt(2000);
CompositeType ct2 = (CompositeType) waitForImplByName(null,
"S2Impl-composite-2");
String general = "From two composites based on the same impl, both should be fetchable/instantiable from apam. %s";
Assert.assertTrue(
String.format(general, "The first one failed to be fetched."),
ct1 != null);
Assert.assertTrue(
String.format(general, "The second one failed to be fetched."),
ct2 != null);
Instance ip1 = ct1.createInstance(null, new HashMap<String, String>());
Instance ip2 = ct2.createInstance(null, new HashMap<String, String>());
Assert.assertTrue(
String.format(general, "The first one failed to instantiate."),
ip1 != null);
Assert.assertTrue(