@Test
public void testOnMatch() throws Exception {
codeGenerator.onConstant(new StringToken("killme2008@gmail.com", 0));
codeGenerator.onConstant(new PatternToken("^[\\w\\-]([\\.\\w])+[\\w]+@([\\w\\-]+\\.)+[a-z]{2,4}$", 1));
codeGenerator.onMatch(null);
Object result = eval(new HashMap<String, Object>());
assertEquals(Boolean.TRUE, result);
}