msg.markAsReadOnly();
assertEquals("1.23",msg.readString());
// Bytes
msg = new StreamMessageImpl();
msg.writeFloat(1.23f);
msg.markAsReadOnly();
try { msg.readBytes(new byte[1]); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
assertEquals(1.23f,msg.readFloat(),0);
}