// Boolean
msg = new StreamMessageImpl();
msg.writeFloat(1.23f);
msg.markAsReadOnly();
try { msg.readBoolean(); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
assertEquals(1.23f,msg.readFloat(),0);
// Byte
msg = new StreamMessageImpl();
msg.writeFloat(1.23f);