MySQLDoubleBinaryProtocolValue implements MySQLBinaryProtocolValue { @Override public void write(final MySQLPacketPayload payload, final Object value) { payload.getByteBuf().writeDoubleLE(Double.parseDouble(value.toString())); }  @Override Object read(final MySQLPacketPayload payload); @Override void write(final MySQLPacketPayload payload, final Object value);  }
@Test public void assertWrite() { new MySQLDoubleBinaryProtocolValue().write(new MySQLPacketPayload(byteBuf), 1.0d); verify(byteBuf).writeDoubleLE(1.0d); }