HornetQStreamMessage message = new HornetQStreamMessage();
message.writeString(Short.toString(value));
message.reset();
Assert.assertEquals(value, message.readShort());
}
public void testReadShortFromInvalidType() throws Exception
{
doReadTypeFromInvalidType(RandomUtil.randomFloat(), new TypeReader()