@Test(expected = HTTPBadRequestException.class)
public void testBadEvent() throws Exception {

  String json = "{[\"a\": \"b\"],\"body\": \"random_body\"}";
  HttpServletRequest req = new FlumeHttpServletRequestWrapper(json);
  handler.getEvents(req);
  Assert.fail();
}