@Override
    protected void write(final MySQLPacketPayload payload) {
        for (Object each : data) {
            if (null == each) {
                payload.writeInt1(NULL);
                continue;
            }
            writeDataIntoPayload(payload, each);
        }
    }
@Test
    void assertWrite() {
        long now = System.currentTimeMillis();
        Timestamp timestamp = new Timestamp(now);
        MySQLTextResultSetRowPacket actual = new MySQLTextResultSetRowPacket(Arrays.asList(null, "value", BigDecimal.ONE, new byte[]{}, timestamp, Boolean.TRUE));
        actual.write(payload);
        verify(payload).writeInt1(0xfb);
        verify(payload).writeStringLenenc("value");
        verify(payload).writeStringLenenc("1");
        if (0 == timestamp.getNanos()) {
            verify(payload).writeStringLenenc(timestamp.toString().split("\\.")[0]);
        } else {
            verify(payload).writeStringLenenc(timestamp.toString());
        }
        verify(payload).writeBytesLenenc(new byte[]{1});
    }