public void testReadDoubleFromFloat() throws Exception
{
float value = RandomUtil.randomFloat();
HornetQStreamMessage message = new HornetQStreamMessage();
message.writeFloat(value);
message.reset();
Assert.assertEquals(Float.valueOf(value).doubleValue(), message.readDouble());
}