@Test
public void testReadBytesWithLargerArray() throws Exception
{
JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage();
bm.writeByte((byte)3);
bm.writeByte((byte)4);
bm.reset();
byte[] result = new byte[3];
int count = bm.readBytes(result);
Assert.assertEquals(2, count);
Assert.assertEquals((byte)3, result[0]);