void doTest(String filename, Integer expectedInt, Class<?> exceptionClass)
throws Exception {
rulesMap.put(new ElementSelector("test"), new NOPAction());
rulesMap.put(new ElementSelector("test/badBegin"), new BadBeginAction());
rulesMap.put(new ElementSelector("test/badBegin/touch"), new TouchAction());
rulesMap.put(new ElementSelector("test/badEnd"), new BadEndAction());
rulesMap.put(new ElementSelector("test/badEnd/touch"), new TouchAction());
rulesMap.put(new ElementSelector("test/hello"), new HelloAction());