@Test
public void testCodePerformance() throws Exception {
MessageCodec codec = lookup(MessageCodec.class, ID);
MessageTree tree = buildMessage();
ChannelBuffer buf = new DynamicChannelBuffer(10240);
codec.encode(tree, buf);
MessageTree result = new DefaultMessageTree();
codec.decode(buf, result);
Assert.assertEquals(tree.toString(), result.toString());
}