@Test
public void testLogSingleMessage() {

  configureSource();
  PropertyConfigurator.configure(props);
  Logger logger = LogManager.getLogger(getClass());
  logger.info("test");
  Transaction tx = ch.getTransaction();
  tx.begin();
  Event e = ch.take();
  Assert.assertNotNull(e);
  Assert.assertEquals("test", new String(e.getBody()));
  Mockito.verify(source, Mockito.times(0)).appendBatch(Mockito.anyList());
  Mockito.verify(source, Mockito.times(1)).append(Mockito.any(AvroFlumeEvent.class));
}