Instance groupAInstance = groupAImpl.createInstance(composite_a,
Collections.<String, String> emptyMap());
Instance groupBInstance = groupBImpl.createInstance(null,
Collections.<String, String> emptyMap());
S3GroupAImpl ga = (S3GroupAImpl) groupAInstance.getServiceObject();
S3GroupBImpl gb = (S3GroupBImpl) groupBInstance.getServiceObject();
// Force instantiation one given specification inside the composite A
System.out.println("A-->" + ga.getElement());
// Force instantiation of the same specification as before in composite
// B
System.out.println("B-->" + gb.getElement());
auxListInstances("---");
String message = String
.format(messageTemplate,
"B should have created a new instance, since he has access to the implementation but not the instances of A");
Assert.assertTrue(message, ga.getElement() != gb.getElement());
}