@Test
public void testAppendEvent() throws Exception
{

  DbusEventBuffer dbuf =
      new DbusEventBuffer(getConfig(10000000, DbusEventBuffer.Config.DEFAULT_INDIVIDUAL_BUFFER_SIZE,
                                    100000, 1000000, AllocationPolicy.HEAP_MEMORY,
                                    QueuePolicy.OVERWRITE_ON_WRITE, AssertLevel.ALL));
  assertTrue(dbuf.getScnIndex().getUpdateOnNext()); // DDSDBUS-1109
  dbuf.startEvents();
  assertTrue(dbuf.appendEvent(new DbusEventKey(key), pPartitionId, lPartitionId, timeStamp,
                              srcId, schemaId, value.getBytes(Charset.defaultCharset()), false));
}