@Test
public void testFilterNonMatches() throws IOException, FieldNotFoundException {

  JsonParser parser = new JsonParser();
  JsonElement input = parser.parse(getResourceString("filter_input.json"));
  GenericJsonEvent devent = new GenericJsonEvent(input.getAsJsonObject());
  InternalEvent ievent = new InternalEvent("", null, 0);
  ievent.setEventObj(devent);
  String path = "$.simple_object.key";
  Pattern patternMatch = Pattern.compile("(val)");
  Pattern patternFail = Pattern.compile("(fail)");
  Boolean match = false;
  assertNotNull(devent.getFieldAsString(path));
  RegexFilterOperation opMatch = new RegexFilterOperation(patternMatch, path, match);
  RegexFilterOperation opFail = new RegexFilterOperation(patternFail, path, match);
  assertTrue(opMatch.test(ievent));
  assertFalse(opFail.test(ievent));
}