// test by path
SessionEventMatcher matcher =
new SessionEventMatcher(Event.NODE_ADDED, new QPath[]{node.getInternalPath()}, true, null, null, ntHolder);
catalog.addAction(matcher, new DummyAction());
Condition cond = new Condition();
cond = new Condition();
cond.put(SessionEventMatcher.EVENTTYPE_KEY, Event.NODE_ADDED);
cond.put(SessionEventMatcher.PATH_KEY, node.getInternalPath());
// test for this path
assertEquals(1, catalog.getActions(cond).size());
cond.put(SessionEventMatcher.PATH_KEY, Constants.ROOT_PATH);
assertEquals(0, catalog.getActions(cond).size());
// test for child path
QPath child = QPath.makeChildPath(node.getInternalPath(), Constants.EXO_PREFIX);
cond.put(SessionEventMatcher.PATH_KEY, child);
assertEquals(1, catalog.getActions(cond).size());
// test for grandchild path - found as deep = true
QPath grandchild = QPath.makeChildPath(child, Constants.EXO_PREFIX);
cond.put(SessionEventMatcher.PATH_KEY, grandchild);
assertEquals(1, catalog.getActions(cond).size());
}