propValues.get(1), null);
}
public void testRemovingProperties() throws RegistryException {
Resource r1 = registry.newResource();
r1.setContent("r1 content");
r1.setProperty("p1", "v1");
r1.setProperty("p2", "v2");
registry.put("/props/t1/r1", r1);
Resource r1e1 = registry.get("/props/t1/r1");
r1e1.removeProperty("p1");
registry.put("/props/t1/r1", r1e1);
Resource r1e2 = registry.get("/props/t1/r1");
assertEquals("Property is not removed.", r1e2.getProperty("p1"), null);
assertNotNull("Wrong property is removed.", r1e2.getProperty("p2"));
}