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());
rulesMap.put(new ElementSelector("test/isolate"), new NOPAction());
rulesMap.put(new ElementSelector("test/isolate/badEnd"), new BadEndAction());
rulesMap.put(new ElementSelector("test/isolate/badEnd/touch"), new TouchAction());
rulesMap.put(new ElementSelector("test/isolate/touch"), new TouchAction());
rulesMap.put(new ElementSelector("test/hello"), new HelloAction());
TrivialConfigurator tc = new TrivialConfigurator(rulesMap);
tc.setContext(context);
tc.doConfigure(CoreTestConstants.TEST_SRC_PREFIX + "input/joran/skip/" + filename);