PostgreSQLDoubleBinaryProtocolValue implements PostgreSQLBinaryProtocolValue { @Override public void write(final PostgreSQLPacketPayload payload, final Object value) { payload.getByteBuf().writeDouble(Double.parseDouble(value.toString())); }  @Override int getColumnLength(final Object value); @Override Object read(final PostgreSQLPacketPayload payload); @Override void write(final PostgreSQLPacketPayload payload, final Object value);  }
@Test public void assertWrite() { new PostgreSQLDoubleBinaryProtocolValue().write(new PostgreSQLPacketPayload(byteBuf), 1D); verify(byteBuf).writeDouble(1.0d); }