@Test
public void testEventObject()
    throws JsonSyntaxException, UnsupportedEncodingException, IOException {

  JsonParser parser = new JsonParser();
  JsonElement input = parser.parse(getResourceString("array_input.json"));
  GenericJsonEvent devent = new GenericJsonEvent(input.getAsJsonObject());
  ArraySplitOperation operation = new ArraySplitOperation("$.arr");
  InternalEvent ievent = new InternalEvent("", null, 0);
  ievent.setEventObj(devent);
  List<String> actual = operation.perform(ievent).stream().map(i -> {
    return i.getEventObj().getPayload().toString();
  }).collect(Collectors.toList());
  List<String> expected = Arrays.asList("{\"foo\":1}", "{\"foo\":2}", "{\"foo\":3}");
  assertEquals(expected, actual);
}