assertEquals(expected, childUp.setProperty("master.property0", "0"));
assertEquals(expected, childUp.getProperty("master.property0"));
//Now check that this property has been saved in the child file, as it was the same value as the master.
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
childUp.store(out, "");
String savedProperties = out.toString();
//We have to check that master properties has not been saved.
assertTrue(savedProperties.indexOf("master.property0") == -1);
} catch (IOException e) {
fail("IOException :"+e);