@Test(expected = UnsupportedCharsetException.class)
public void testError() throws Exception {

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