public void testReaction_tct041() {
waitForApam();
System.out.println("=========== start testReaction test");
perfWire perfWire = initperfWireInstance();
System.out.println("creating 2 instances");
Implementation implS1 = CST.apamResolver.findImplByName(null,"S1ImplEmpty");
Instance s1 = implS1.createInstance(null, null);
Instance s2 = implS1.createInstance(null, null);
S1 testReaction = perfWire.getFieldTestReaction();
Assert.assertNotNull("S1 field testReaction not resoved", testReaction);
Instance test = CST.componentBroker.getInstService(testReaction) ;
System.out.println("connected to " + test.getName());
if (test == s1)
s2.setProperty("debit", 100) ;
else
s1.setProperty("debit", 100) ;
Instance thisInstance = perfWire.getFieldThisInstance();
Assert.assertNotNull("thisInstance field testReaction not resoved", thisInstance);
thisInstance.setProperty("need", 20) ;
test = CST.componentBroker.getInstService(testReaction) ;
System.out.println("connected to " + test.getName());