}
public void testReadAction() throws ItemExistsException, PathNotFoundException, VersionException,
ConstraintViolationException, LockException, RepositoryException
{
SessionActionCatalog catalog =
(SessionActionCatalog)container.getComponentInstanceOfType(SessionActionCatalog.class);
catalog.clear();
// test by path
Node testNode = root.addNode("testNode");
PropertyImpl prop = (PropertyImpl)testNode.setProperty("test", "test");
root.save();
SessionEventMatcher matcher =
new SessionEventMatcher(ExtendedEvent.READ, new QPath[]{prop.getData().getQPath()}, true, null,
new InternalQName[]{Constants.NT_UNSTRUCTURED}, ntHolder);
DummyAction dAction = new DummyAction();
catalog.addAction(matcher, dAction);
assertEquals(0, dAction.getActionExecuterCount());
String val = testNode.getProperty("test").getValue().getString();
assertEquals(1, dAction.getActionExecuterCount());