@Test
public void testWriteInt() throws Exception
{
JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage();
bm.writeInt(10);
bm.reset();
long len = bm.getBodyLength();
Assert.assertTrue(len == 4);
int val = bm.readInt();
Assert.assertTrue(val == 10);