@Override
    protected void write(final MySQLPacketPayload payload) {
        payload.writeInt4(timestamp);
        payload.writeInt1(eventType);
        payload.writeInt4(serverId);
        payload.writeInt4(eventSize);
        payload.writeInt4(logPos);
        payload.writeInt2(flags);
    }
@Test
    void assertWrite() {
        new MySQLBinlogEventHeader(1234567890, MySQLBinlogEventType.UNKNOWN_EVENT.getValue(), 123456, 19, 4, MySQLBinlogEventFlag.LOG_EVENT_BINLOG_IN_USE_F.getValue(), 4).write(payload);
        verify(payload).writeInt4(1234567890);
        verify(payload).writeInt1(MySQLBinlogEventType.UNKNOWN_EVENT.getValue());
        verify(payload).writeInt4(123456);
        verify(payload).writeInt4(19);
        verify(payload).writeInt4(4);
        verify(payload).writeInt2(MySQLBinlogEventFlag.LOG_EVENT_BINLOG_IN_USE_F.getValue());
    }