PostgreSQLDoubleBinaryProtocolValue implements PostgreSQLBinaryProtocolValue { @Override public Object read(final PostgreSQLPacketPayload payload) { return payload.getByteBuf().readDouble(); }  @Override int getColumnLength(final Object value); @Override Object read(final PostgreSQLPacketPayload payload); @Override void write(final PostgreSQLPacketPayload payload, final Object value);  }
@Test public void assertRead() { when(byteBuf.readDouble()).thenReturn(1D); assertThat(new PostgreSQLDoubleBinaryProtocolValue().read(new PostgreSQLPacketPayload(byteBuf)), is(1D)); }