@Test
public void testSingleHTMLEvent() throws Exception {

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