DummyAction daction = new DummyAction();
// test by path
prepareActionCatalog(daction, actionInfo.getEventType(), new QPath[]{((NodeImpl)node).getInternalPath()},
true, null, null, null);
assertEquals(0, daction.getActionExecuterCount());
Context ctx = new ContextBase();
ctx.put("node", otherNode);
actionInfo.execute(ctx);
assertEquals(0, daction.getActionExecuterCount());
actionInfo.tearDown(ctx);
ctx.put("node", node3);
actionInfo.execute(ctx);
assertEquals(1, daction.getActionExecuterCount());
actionInfo.tearDown(ctx);
// Not deep
daction = new DummyAction();
prepareActionCatalog(daction, actionInfo.getEventType(), new QPath[]{((NodeImpl)node).getInternalPath()},
false, null, null, null);
assertEquals(0, daction.getActionExecuterCount());
ctx.put("node", otherNode);
actionInfo.execute(ctx);
assertEquals(0, daction.getActionExecuterCount());
actionInfo.tearDown(ctx);
ctx.put("node", node3);
actionInfo.execute(ctx);
assertEquals(0, daction.getActionExecuterCount());
actionInfo.tearDown(ctx);
node.remove();