@Override
    public void write(final MySQLPacketPayload payload, final Object value) {
        if (value instanceof byte[]) {
            payload.writeBytesLenenc((byte[]) value);
        } else {
            payload.writeStringLenenc(value.toString());
        }
    }
@Test
    void assertWriteString() {
        new MySQLStringLenencBinaryProtocolValue().write(payload, "value");
        verify(payload).writeStringLenenc("value");
    }