@Test
public void testWrite() throws Exception {

    final Buffer value = Buffer.ascii("TESTDATA");
    final BufferState state = codec.write(value);
    assertEquals(BufferState.WAS_EMPTY, state);
    assertEquals(false, codec.full());
    assertEquals(false, codec.empty());
    assertEquals(0L, codec.getWriteCounter());
}