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/MySQLHandshakeResponse41PacketTest.java
test_class.identifier: MySQLHandshakeResponse41PacketTest
test_case.body: @Test
      public void assertWriteWithClientPluginAuthLenencClientData() {
          MySQLHandshakeResponse41Packet actual = new MySQLHandshakeResponse41Packet(1, 100, MySQLServerInfo.CHARSET, "root");
          actual.setCapabilityFlags(MySQLCapabilityFlag.CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA.getValue());
          actual.setAuthResponse(new byte[] {1});
          actual.write(payload);
          verify(payload).writeInt4(MySQLCapabilityFlag.CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA.getValue());
          verify(payload).writeInt4(100);
          verify(payload).writeInt1(MySQLServerInfo.CHARSET);
          verify(payload).writeReserved(23);
          verify(payload).writeStringNul("root");
          verify(payload).writeStringLenenc(new String(new byte[] {1}));
      }
test_case.class_method_signature: MySQLHandshakeResponse41PacketTest.assertWriteWithClientPluginAuthLenencClientData()
test_case.full_signature: @Test public void assertWriteWithClientPluginAuthLenencClientData()
test_case.identifier: assertWriteWithClientPluginAuthLenencClientData
test_case.invocations: setCapabilityFlags getValue setAuthResponse write writeInt4 verify getValue writeInt4 verify writeInt1 verify writeReserved verify writeStringNul verify writeStringLenenc verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWriteWithClientPluginAuthLenencClientData()
focal_class.declarator: sequenceId
focal_class.modifier: private final
focal_class.original_string: private final int sequenceId;
focal_class.type: int
focal_class.var_name: sequenceId
focal_class.declarator: maxPacketSize
focal_class.modifier: private final
focal_class.original_string: private final int maxPacketSize;
focal_class.type: int
focal_class.var_name: maxPacketSize
focal_class.declarator: characterSet
focal_class.modifier: private final
focal_class.original_string: private final int characterSet;
focal_class.type: int
focal_class.var_name: characterSet
focal_class.declarator: username
focal_class.modifier: private final
focal_class.original_string: private final String username;
focal_class.type: String
focal_class.var_name: username
focal_class.declarator: authResponse
focal_class.modifier: private
focal_class.original_string: private byte[] authResponse;
focal_class.type: byte[]
focal_class.var_name: authResponse
focal_class.declarator: capabilityFlags
focal_class.modifier: private
focal_class.original_string: private int capabilityFlags;
focal_class.type: int
focal_class.var_name: capabilityFlags
focal_class.declarator: database
focal_class.modifier: private
focal_class.original_string: private String database;
focal_class.type: String
focal_class.var_name: database
focal_class.declarator: authPluginName
focal_class.modifier: private
focal_class.original_string: private String authPluginName;
focal_class.type: String
focal_class.var_name: authPluginName
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/handshake/MySQLHandshakeResponse41Packet.java
focal_class.identifier: MySQLHandshakeResponse41Packet
focal_class.interfaces: implements MySQLPacket
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.MySQLHandshakeResponse41Packet(final MySQLPacketPayload payload)
focal_class.full_signature: public  MySQLHandshakeResponse41Packet(final MySQLPacketPayload payload)
focal_class.identifier: MySQLHandshakeResponse41Packet
focal_class.modifiers: public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.signature:  MySQLHandshakeResponse41Packet(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.readAuthResponse(final MySQLPacketPayload payload)
focal_class.full_signature: private byte[] readAuthResponse(final MySQLPacketPayload payload)
focal_class.identifier: readAuthResponse
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: byte[]
focal_class.signature: byte[] readAuthResponse(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.readDatabase(final MySQLPacketPayload payload)
focal_class.full_signature: private String readDatabase(final MySQLPacketPayload payload)
focal_class.identifier: readDatabase
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: String
focal_class.signature: String readDatabase(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.readAuthPluginName(final MySQLPacketPayload payload)
focal_class.full_signature: private String readAuthPluginName(final MySQLPacketPayload payload)
focal_class.identifier: readAuthPluginName
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: String
focal_class.signature: String readAuthPluginName(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.setDatabase(final String database)
focal_class.full_signature: public void setDatabase(final String database)
focal_class.identifier: setDatabase
focal_class.modifiers: public
focal_class.parameters: (final String database)
focal_class.return: void
focal_class.signature: void setDatabase(final String database)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.setAuthPluginName(final MySQLAuthenticationMethod mysqlAuthenticationMethod)
focal_class.full_signature: public void setAuthPluginName(final MySQLAuthenticationMethod mysqlAuthenticationMethod)
focal_class.identifier: setAuthPluginName
focal_class.modifiers: public
focal_class.parameters: (final MySQLAuthenticationMethod mysqlAuthenticationMethod)
focal_class.return: void
focal_class.signature: void setAuthPluginName(final MySQLAuthenticationMethod mysqlAuthenticationMethod)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.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_class.class_method_signature: MySQLHandshakeResponse41Packet.writeAuthResponse(final MySQLPacketPayload payload)
focal_class.full_signature: private void writeAuthResponse(final MySQLPacketPayload payload)
focal_class.identifier: writeAuthResponse
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void writeAuthResponse(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.writeDatabase(final MySQLPacketPayload payload)
focal_class.full_signature: private void writeDatabase(final MySQLPacketPayload payload)
focal_class.identifier: writeDatabase
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void writeDatabase(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLHandshakeResponse41Packet.writeAuthPluginName(final MySQLPacketPayload payload)
focal_class.full_signature: private void writeAuthPluginName(final MySQLPacketPayload payload)
focal_class.identifier: writeAuthPluginName
focal_class.modifiers: private
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void writeAuthPluginName(final MySQLPacketPayload payload)
focal_method.body: @Override
      public void write(final MySQLPacketPayload payload) {
          payload.writeInt4(capabilityFlags);
          payload.writeInt4(maxPacketSize);
          payload.writeInt1(characterSet);
          payload.writeReserved(23);
          payload.writeStringNul(username);
          writeAuthResponse(payload);
          writeDatabase(payload);
          writeAuthPluginName(payload);
      }
focal_method.class_method_signature: MySQLHandshakeResponse41Packet.write(final MySQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeInt4 writeInt4 writeInt1 writeReserved writeStringNul writeAuthResponse writeDatabase writeAuthPluginName
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final MySQLPacketPayload payload)