@Test
public void testTruncEvilEvent() {

  long maxSize = FlumeConfiguration.get().getEventMaxSizeBytes();
  ByteBuffer toobig = ByteBuffer.allocate((int) (maxSize * 2));
  ThriftFlumeEvent tevt = new ThriftFlumeEvent(0L, Priority.INFO, toobig, 0L,
      "localhost", new HashMap<String, ByteBuffer>());
  Event e = ThriftEventConvertUtil.toFlumeEvent(tevt, true);
  EventImpl.select(e);
}