MySQLFloatBinaryProtocolValue implements MySQLBinaryProtocolValue { @Override public void write(final MySQLPacketPayload payload, final Object value) { payload.getByteBuf().writeFloatLE(Float.parseFloat(value.toString())); }  @Override Object read(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload, final Object value);  }
@Test public void assertWrite() { new MySQLFloatBinaryProtocolValue().write(new MySQLPacketPayload(byteBuf), 1.0f); verify(byteBuf).writeFloatLE(1.0f); }