public void testReadStringFromBoolean() throws Exception
{
boolean value = RandomUtil.randomBoolean();
HornetQStreamMessage message = new HornetQStreamMessage();
message.writeBoolean(value);
message.reset();
Assert.assertEquals(Boolean.toString(value), message.readString());
}