@Test
public void testNoBody() throws Exception {

  String json = "[{\"headers\" : {\"a\": \"b\"}},"
          + "{\"headers\" : {\"e\": \"f\"},\"body\": \"random_body2\"}]";
  HttpServletRequest req = new FlumeHttpServletRequestWrapper(json);
  List<Event> deserialized = handler.getEvents(req);
  Event e = deserialized.get(0);
  Assert.assertEquals("b", e.getHeaders().get("a"));
  Assert.assertTrue(e.getBody().length == 0);
  e = deserialized.get(1);
  Assert.assertEquals("f", e.getHeaders().get("e"));
  Assert.assertEquals("random_body2", new String(e.getBody(),"UTF-8"));
}