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