ContentRepositoryException {
String propertyName = "testproperty";
String propertyValue = "testvalue";
Pagelet p = new PageletImpl("testmodule", "testid");
p.addProperty(propertyName, propertyValue);
page.addPagelet(p, "stage");
try {
idx.add(page);
assertEquals(1, idx.getResourceCount());