try {
Type t = xCont.getElementType();
log.println("Insertable Type: " + t.getTypeName());
assure("Initial container is not empty: " + xCont.getCount(), xCont.getCount()==0);
log.println("Inserting a PropertyValue.");
xCont.insertByIndex(0, prop1);
PropertyValue[]ret = (PropertyValue[])xCont.getByIndex(0);
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));