### Question:
JmsBytesMessage extends JmsMessage implements BytesMessage { @Override public int readInt() throws JMSException { initializeReading(); try { return this.dataIn.readInt(); } catch (ArrayIndexOutOfBoundsException e) { throw JmsExceptionSupport.createMessageEOFException(e); } catch (Throwable e) { throw JmsExceptionSupport.createMessageFormatException(e); } } JmsBytesMessage(JmsMessageFacade facade); @Override JmsMessage copy(); @Override void onSend(); @Override void clearBody(); @Override long getBodyLength(); @Override boolean readBoolean(); @Override byte readByte(); @Override int readUnsignedByte(); @Override short readShort(); @Override int readUnsignedShort(); @Override char readChar(); @Override int readInt(); @Override long readLong(); @Override float readFloat(); @Override double readDouble(); @Override String readUTF(); @Override int readBytes(byte[] value); @Override int readBytes(byte[] value, int length); @Override void writeBoolean(boolean value); @Override void writeByte(byte value); @Override void writeShort(short value); @Override void writeChar(char value); @Override void writeInt(int value); @Override void writeLong(long value); @Override void writeFloat(float value); @Override void writeDouble(double value); @Override void writeUTF(String value); @Override void writeBytes(byte[] value); @Override void writeBytes(byte[] value, int offset, int length); @Override void writeObject(Object value); @Override void reset(); @Override void setObjectProperty(String name, Object value); @Override String toString();  }### Answer:
@Test public void testReadInt() { JmsBytesMessage msg = factory.createBytesMessage(); try { msg.writeInt(3000); msg.reset(); assertTrue(msg.readInt() == 3000); } catch (JMSException jmsEx) { jmsEx.printStackTrace(); assertTrue(false); } }