public void testKahaAddMessageCommand() throws IOException {
KahaAddMessageCommand expected = new KahaAddMessageCommand();
expected.setDestination(new KahaDestination().setName("Foo").setType(DestinationType.QUEUE));
expected.setMessage(new Buffer(new byte[] {1,2,3,4,5,6} ));
expected.setMessageId("Hello World");
int size = expected.serializedSizeFramed();
DataByteArrayOutputStream os = new DataByteArrayOutputStream(size + 1);
os.writeByte(expected.type().getNumber());