xCont.insertByName("prop1", prop1);
PropertyValue[]ret = (PropertyValue[])xCont.getByName("prop1");
assertEquals(prop1[0].Name, ret[0].Name);
assertEquals(prop1[0].Value, ret[0].Value);
xCont.replaceByName("prop1", prop2);
ret = (PropertyValue[])xCont.getByName("prop1");
assertEquals(prop2[0].Name, ret[0].Name);
assertEquals(prop2[0].Value, ret[0].Value);
xCont.removeByName("prop1");
assertFalse("Could not remove PropertyValue.", xCont.hasElements());