@SuppressWarnings ({"unchecked", "rawtypes"})
public void testMessageEncoding() throws IOException {
for (Message message : testMessages) {
MessageCodec codec = codecLookup.find(message.getClass());
ByteBuf encoded;
Message decoded;
try {
encoded = codec.encodeToServer(message);
decoded = codec.decodeFromClient(encoded);
} catch (Throwable t) {
t.printStackTrace();