@Test
public void testEncodeNormal() throws Exception {
Encoder encoder = this.codecFactory.getEncoder();
Assert.assertNotNull(encoder);
IoBuffer buffer = encoder.encode(IoBuffer.wrap("hello".getBytes("utf-8")), null);
Assert.assertNotNull(buffer);
Assert.assertTrue(buffer.hasRemaining());
Assert.assertArrayEquals("hello".getBytes("utf-8"), buffer.array());
}