MySQLFloatBinaryProtocolValue implements MySQLBinaryProtocolValue { @Override public Object read(final MySQLPacketPayload payload) { return payload.getByteBuf().readFloatLE(); }  @Override Object read(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload, final Object value);  }
@Test public void assertRead() { when(byteBuf.readFloatLE()).thenReturn(1.0f); assertThat(new MySQLFloatBinaryProtocolValue().read(new MySQLPacketPayload(byteBuf)), is(1.0f)); }