test_class.declarator: authPluginData
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private MySQLAuthPluginData authPluginData;
test_class.type: MySQLAuthPluginData
test_class.var_name: authPluginData
test_class.declarator: payload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private MySQLPacketPayload payload;
test_class.type: MySQLPacketPayload
test_class.var_name: payload
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/handshake/MySQLAuthSwitchRequestPacketTest.java
test_class.identifier: MySQLAuthSwitchRequestPacketTest
test_case.body: @Test
      public void assertWrite() {
          when(authPluginData.getAuthPluginData()).thenReturn(new byte[] {0x11, 0x22});
          MySQLAuthSwitchRequestPacket authSwitchRequestPacket = new MySQLAuthSwitchRequestPacket(1, "plugin", authPluginData);
          authSwitchRequestPacket.write(payload);
          verify(payload).writeInt1(0xfe);
          verify(payload, times(2)).writeStringNul(anyString());
      }
test_case.class_method_signature: MySQLAuthSwitchRequestPacketTest.assertWrite()
test_case.full_signature: @Test public void assertWrite()
test_case.identifier: assertWrite
test_case.invocations: thenReturn when getAuthPluginData write writeInt1 verify writeStringNul verify times anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWrite()
focal_class.declarator: sequenceId
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final int sequenceId;
focal_class.type: int
focal_class.var_name: sequenceId
focal_class.declarator: authPluginName
focal_class.modifier: private final
focal_class.original_string: private final String authPluginName;
focal_class.type: String
focal_class.var_name: authPluginName
focal_class.declarator: authPluginData
focal_class.modifier: private final
focal_class.original_string: private final MySQLAuthPluginData authPluginData;
focal_class.type: MySQLAuthPluginData
focal_class.var_name: authPluginData
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/handshake/MySQLAuthSwitchRequestPacket.java
focal_class.identifier: MySQLAuthSwitchRequestPacket
focal_class.interfaces: implements MySQLPacket
focal_class.class_method_signature: MySQLAuthSwitchRequestPacket.write(final MySQLPacketPayload payload)
focal_class.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void write(final MySQLPacketPayload payload)
focal_method.body: @Override
      public void write(final MySQLPacketPayload payload) {
          payload.writeInt1(0xfe);
          payload.writeStringNul(authPluginName);
          payload.writeStringNul(new String(authPluginData.getAuthPluginData()));
      }
focal_method.class_method_signature: MySQLAuthSwitchRequestPacket.write(final MySQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeInt1 writeStringNul writeStringNul getAuthPluginData
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final MySQLPacketPayload payload)