// Check if all valid instances were injected
Assert.assertTrue(
String.format(
"Instance %s (currentVoltage:%s) was injected even if its does not obey the constraint (currentVoltage <= 110)",
p.getName(), p.getProperty("currentVoltage")), p
.match("(currentVoltage <= 110)"));
Assert.assertTrue(
String.format(
"Instance %s (currentVoltage:%s) was not found in the list of valid instances for the constraint (currentVoltage <= 110)",
p.getName(), p.getProperty("currentVoltage")),