@Test
public void SubstitutionReachingMultipleNodesWithKeywordComposite_tc127() {
CompositeType subjectECompositeType = (CompositeType) waitForImplByName(
null, "subject-e-composite");
Composite subjectEComposite = (Composite) subjectECompositeType
.createInstance(null, Collections.<String, String> emptyMap());
Implementation implementationAlpha = waitForImplByName(null,
"impl-case-17");
Instance instanceEcho = implementationAlpha.createInstance(
subjectEComposite, null);
Implementation subjectCimpl = waitForImplByName(null, "subject-e");
// Instance of the subject-a (parent)
Instance subjectE = subjectCimpl.createInstance(null, null);
S6Impl s6 = (S6Impl) subjectE.getServiceObject();
// Force injection
s6.getS6();
auxListProperties("\t", subjectE);
String parentProperty = subjectE
.getProperty("property-case-17-parent-composite");
String dependencyProperty = subjectE
.getProperty("property-case-17-dep-composite");
System.out.println("parentProperty -->" + parentProperty
+ " | subjectEComposite.getName() -->"
+ subjectE.getComposite().getName());
String template = "Using metasubstitution, with components in different composites , %s";
Assert.assertTrue(
String.format(template,
"although the dependency do not correspond to the correct one"),
dependencyProperty.equals(subjectEComposite.getName()));
Assert.assertTrue(String.format(template,
"although the parent do not correspond the correct one"),
parentProperty.equals(subjectE.getComposite().getName()));