}
msg.writeBytes(content, 0, content.length);
XBDestination dest = new XBDestination("someTopic", null);
msg.setJMSDestination(dest);
msg.reset();
MsgUnit msgUnit = MessageHelper.convertToMessageUnit(new Global(), msg);
byte[] content2 = msgUnit.getContent();
assertEquals("Wrong length", content.length, content2.length);
msg.readBytes(content2);