@Test(expected = RuntimeException.class)
public void testEvilEvent() {

  long maxSize = FlumeConfiguration.get().getEventMaxSizeBytes();
  ByteBuffer toobig = ByteBuffer.allocate((int) (maxSize * 2));
  AvroFlumeEvent tevt = new AvroFlumeEvent();
  tevt.timestamp = 0L;
  tevt.priority = Priority.INFO;
  tevt.body = toobig;
  tevt.nanos = 0L;
  tevt.host = "localhost";
  tevt.fields = new HashMap<CharSequence, ByteBuffer>();
  Event e = AvroEventConvertUtil.toFlumeEvent(tevt);
  EventImpl.select(e);
}