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

  JsonParser parser = new JsonParser();
  TestContext t = new TestContext();
  t.setFunctionName("foo");
  LambdaContext lctx = new LambdaContext(t);
  JsonElement input = parser.parse(getResourceString("array_input.json"));
  GenericJsonEvent devent = new GenericJsonEvent(input.getAsJsonObject());
  ArraySplitOperation operation = new ArraySplitOperation("$.arr");
  InternalEvent ievent = new InternalEvent("", lctx, 1);
  ievent.setEventObj(devent);
  List<InternalEvent> actual = operation.perform(ievent);
  assertEquals(lctx, actual.get(0).getCtx());
  assertEquals(lctx, actual.get(1).getCtx());
  assertEquals(lctx, actual.get(2).getCtx());
}