}
@Test
public void SubstitutionReachingMultipleNodesWithInstsKeyword_tc123() {
Implementation implementationCase12Child = waitForImplByName(null,
"impl-case-12-child");
Instance instanceAlpha = implementationCase12Child.createInstance(null,
new HashMap<String, String>() {
{
put("property-subject-b", "alpha(child)");
}
});
Instance instanceBravo = implementationCase12Child.createInstance(null,
new HashMap<String, String>() {
{
put("property-subject-b", "bravo(child)");
}
});
Implementation implementationCase12 = waitForImplByName(null,
"impl-case-12");
Instance instanceCharlie = implementationCase12.createInstance(null,
new HashMap<String, String>() {
{
put("property-subject-b", "charlie(parent)");
}
});
Instance instanceDelta = implementationCase12.createInstance(null,
new HashMap<String, String>() {
{
put("property-subject-b", "delta(parent)");
}
});
instanceCharlie.getLink("case12child");
instanceDelta.getLink("case12child");
// Instance of the subject-a (parent)
Implementation subjectAimpl = waitForImplByName(null, "subject-a");
Instance subjectA = subjectAimpl.createInstance(null, null);
// Force the field to be injected
S6Impl s6parent = (S6Impl) subjectA.getServiceObject();
s6parent.getS6();