AvroFlumeEvent avroEvent = new AvroFlumeEvent();
avroEvent.setHeaders(new HashMap<CharSequence, CharSequence>());
avroEvent.setBody(ByteBuffer.wrap("Hello avro ipFilter".getBytes()));
logger.info("Client about to append");
Status status = client.append(avroEvent);
logger.info("Client appended");
Assert.assertEquals(Status.OK, status);
} catch (IOException e) {
Assert.assertTrue("Should have been allowed: " + ruleDefinition,
!eventShouldBeAllowed);