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));
log.println("Remove the PropertyValue.");
xCont.removeByName("prop1");
assure("Could not remove PropertyValue.", !xCont.hasElements());
log.println("Insert again.");
xCont.insertByName("prop1", prop1);
xCont.insertByName("prop2", prop2);
assure("Did not insert PropertyValue.", xCont.hasElements());