@Override
    public void write(final PostgreSQLPacketPayload payload, final Object value) {
        payload.writeBytes((byte[]) value);
    }
@Test
    void assertWrite() {
        byte[] bytes = new byte[5];
        ByteBuf byteBuf = Unpooled.wrappedBuffer(bytes).writerIndex(0);
        PostgreSQLPacketPayload payload = new PostgreSQLPacketPayload(byteBuf, StandardCharsets.UTF_8);
        byte[] expected = "value".getBytes(StandardCharsets.UTF_8);
        new PostgreSQLByteaBinaryProtocolValue().write(payload, expected);
        assertThat(bytes, is(expected));
    }