assure("Got the wrong PropertyValue: " +
ret[0].Name + " " +(String)ret[0].Value,
ret[0].Name.equals(prop1[0].Name) &&
ret[0].Value.equals(prop1[0].Value));
log.println("Replace the PropertyValue.");
xCont.replaceByName("prop1", prop2);
ret = (PropertyValue[])xCont.getByName("prop1");
assure("Got the wrong PropertyValue: " +
ret[0].Name + " " +(String)ret[0].Value,
ret[0].Name.equals(prop2[0].Name) &&
ret[0].Value.equals(prop2[0].Value));