public void testReadString() {
ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
try {
byte testByte = (byte) 2;
msg.writeString(new Byte(testByte).toString());
msg.reset();
assertTrue(msg.readByte() == testByte);
msg.clearBody();
short testShort = 3;
msg.writeString(new Short(testShort).toString());
msg.reset();