assertEquals("Bananas", res);
}
public void testWriteBytes() throws Exception
{
JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
byte[] bytes = {1,2,3,4};
bm.writeBytes(bytes, 1, 2);
bm.reset();
bytes = new byte[2];
bm.readBytes(bytes);
assertEquals(2, bytes[0]);
assertEquals(3, bytes[1]);
}