@Override
    public Object read(final PostgreSQLPacketPayload payload, final int parameterValueLength) {
        return payload.getByteBuf().readShort();
    }
@Test
    void assertRead() {
        byte[] data = {(byte) 0x80, (byte) 0x00, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F, (byte) 0xFF};
        PostgreSQLInt2BinaryProtocolValue actual = new PostgreSQLInt2BinaryProtocolValue();
        PostgreSQLPacketPayload payload = new PostgreSQLPacketPayload(Unpooled.wrappedBuffer(data), StandardCharsets.UTF_8);
        assertThat(actual.read(payload, 2), is(Short.MIN_VALUE));
        assertThat(actual.read(payload, 2), is((short) -1));
        assertThat(actual.read(payload, 2), is(Short.MAX_VALUE));
    }