@Test
public void testSetField() throws FieldNotFoundException {

  GenericJsonEvent event = getEmptyEvent();
  event.setField("$.foo", "bar");
  JsonObject payload = (JsonObject) event.getPayload();
  assertEquals("bar", payload.get("foo").getAsString());
  assertEquals("b", payload.get("a").getAsString());
}