auxListInstances("instances existing before the test-");
Composite instanceComposite = (Composite) ct1.createInstance(null,new HashMap<String, String>());
InstanceImpl mainInstance = (InstanceImpl) instanceComposite
.getMainInst();
Assert.assertTrue(String.format(message,
"Although, the test failed to instantiate the composite"),
instanceComposite != null && mainInstance != null);
apam.waitForIt(Constants.CONST_WAIT_TIME);
auxListInstances("instances existing after the test-");
Set<Link> resolutionResult = mainInstance.getExistingLinks("deadMansSwitch");
Assert.assertTrue( String.format(message,
"Although, there exist no instance of dependence required(specification 'electronic-device'), which means that it was not injected correctly."),
resolutionResult.size() == 1);