test_class.declarator: backendConnection
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BackendConnection backendConnection;
test_class.type: BackendConnection
test_class.var_name: backendConnection
test_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/MySQLCommandExecutorFactoryTest.java
test_class.identifier: MySQLCommandExecutorFactoryTest
test_case.body: @Test
      public void assertNewInstanceWithComStmtExecute() {
          assertThat(MySQLCommandExecutorFactory.newInstance(MySQLCommandPacketType.COM_STMT_EXECUTE,
                  mock(MySQLComStmtExecutePacket.class), backendConnection), instanceOf(MySQLComStmtExecuteExecutor.class));
      }
test_case.class_method_signature: MySQLCommandExecutorFactoryTest.assertNewInstanceWithComStmtExecute()
test_case.full_signature: @Test public void assertNewInstanceWithComStmtExecute()
test_case.identifier: assertNewInstanceWithComStmtExecute
test_case.invocations: assertThat newInstance mock instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertNewInstanceWithComStmtExecute()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/MySQLCommandExecutorFactory.java
focal_class.identifier: MySQLCommandExecutorFactory
focal_class.class_method_signature: MySQLCommandExecutorFactory.newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_class.full_signature: public static CommandExecutor newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_class.return: CommandExecutor
focal_class.signature: CommandExecutor newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_method.body: public static CommandExecutor newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection) {
          log.debug("Execute packet type: {}, value: {}", commandPacketType, commandPacket);
          switch (commandPacketType) {
              case COM_QUIT:
                  return new MySQLComQuitExecutor();
              case COM_INIT_DB:
                  return new MySQLComInitDbExecutor((MySQLComInitDbPacket) commandPacket, backendConnection);
              case COM_FIELD_LIST:
                  return new MySQLComFieldListPacketExecutor((MySQLComFieldListPacket) commandPacket, backendConnection);
              case COM_QUERY:
                  return new MySQLComQueryPacketExecutor((MySQLComQueryPacket) commandPacket, backendConnection);
              case COM_PING:
                  return new MySQLComPingExecutor();
              case COM_STMT_PREPARE:
                  return new MySQLComStmtPrepareExecutor((MySQLComStmtPreparePacket) commandPacket);
              case COM_STMT_EXECUTE:
                  return new MySQLComStmtExecuteExecutor((MySQLComStmtExecutePacket) commandPacket, backendConnection);
              case COM_STMT_RESET:
                  return new MySQLComStmtResetExecutor((MySQLComStmtResetPacket) commandPacket);
              case COM_STMT_CLOSE:
                  return new MySQLComStmtCloseExecutor((MySQLComStmtClosePacket) commandPacket);
              default:
                  return new MySQLUnsupportedCommandExecutor(commandPacketType);
          }
      }
focal_method.class_method_signature: MySQLCommandExecutorFactory.newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_method.full_signature: public static CommandExecutor newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_method.identifier: newInstance
focal_method.invocations: debug
focal_method.modifiers: public static
focal_method.parameters: (final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)
focal_method.return: CommandExecutor
focal_method.signature: CommandExecutor newInstance(final MySQLCommandPacketType commandPacketType, final CommandPacket commandPacket, final BackendConnection backendConnection)