Properties p = cs.getProps();
Integer changes = (Integer) p.get("changes");
assertNotNull("Check changes no null", changes);
assertEquals("Changes changes 1 ("+changes+")", changes.intValue(), 1);
assertEquals("Check instance validity - 1", arch.getInstanceDescription().getState(), ComponentInstance.VALID);
cs.check();
p = cs.getProps();
changes = (Integer) p.get("changes");
assertEquals("Changes changes 2 ("+changes+")", changes.intValue(), 2);
assertEquals("Check instance validity - 2", arch.getInstanceDescription().getState(), ComponentInstance.INVALID);
cs.check();