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