@Override
    protected void write(final MySQLPacketPayload payload) {
        payload.writeInt1(HEADER);
        payload.writeStringNul(authPluginName);
        payload.writeStringNul(new String(authPluginData.getAuthenticationPluginData()));
    }
@Test
    void assertWrite() {
        when(authPluginData.getAuthenticationPluginData()).thenReturn(new byte[]{0x11, 0x22});
        MySQLAuthSwitchRequestPacket authSwitchRequestPacket = new MySQLAuthSwitchRequestPacket("plugin", authPluginData);
        authSwitchRequestPacket.write(payload);
        verify(payload).writeInt1(0xfe);
        verify(payload, times(2)).writeStringNul(anyString());
    }