test_class.declarator: createTableStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private CreateTableStatementContext createTableStatementContext;
test_class.type: CreateTableStatementContext
test_class.var_name: createTableStatementContext
test_class.declarator: createIndexStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private CreateIndexStatementContext createIndexStatementContext;
test_class.type: CreateIndexStatementContext
test_class.var_name: createIndexStatementContext
test_class.declarator: alterIndexStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AlterIndexStatementContext alterIndexStatementContext;
test_class.type: AlterIndexStatementContext
test_class.var_name: alterIndexStatementContext
test_class.declarator: alterTableStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AlterTableStatementContext alterTableStatementContext;
test_class.type: AlterTableStatementContext
test_class.var_name: alterTableStatementContext
test_class.declarator: dropIndexStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DropIndexStatementContext dropIndexStatementContext;
test_class.type: DropIndexStatementContext
test_class.var_name: dropIndexStatementContext
test_class.declarator: dropTableStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DropTableStatementContext dropTableStatementContext;
test_class.type: DropTableStatementContext
test_class.var_name: dropTableStatementContext
test_class.declarator: truncateStatementContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private TruncateStatementContext truncateStatementContext;
test_class.type: TruncateStatementContext
test_class.var_name: truncateStatementContext
test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/refresh/MetaDataRefreshStrategyFactoryTest.java
test_class.identifier: MetaDataRefreshStrategyFactoryTest
test_case.body: @Test
      public void assertNewInstance() {
          assertTrue(MetaDataRefreshStrategyFactory.newInstance(createTableStatementContext).isPresent());
          assertTrue(MetaDataRefreshStrategyFactory.newInstance(createIndexStatementContext).isPresent());
          assertFalse(MetaDataRefreshStrategyFactory.newInstance(alterIndexStatementContext).isPresent());
          assertTrue(MetaDataRefreshStrategyFactory.newInstance(alterTableStatementContext).isPresent());
          assertTrue(MetaDataRefreshStrategyFactory.newInstance(dropIndexStatementContext).isPresent());
          assertTrue(MetaDataRefreshStrategyFactory.newInstance(dropTableStatementContext).isPresent());
          assertFalse(MetaDataRefreshStrategyFactory.newInstance(truncateStatementContext).isPresent());
      }
test_case.class_method_signature: MetaDataRefreshStrategyFactoryTest.assertNewInstance()
test_case.full_signature: @Test public void assertNewInstance()
test_case.identifier: assertNewInstance
test_case.invocations: assertTrue isPresent newInstance assertTrue isPresent newInstance assertFalse isPresent newInstance assertTrue isPresent newInstance assertTrue isPresent newInstance assertTrue isPresent newInstance assertFalse isPresent newInstance
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertNewInstance()
focal_class.declarator: REGISTRY = new HashMap<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Class<?>, MetaDataRefreshStrategy> REGISTRY = new HashMap<>();
focal_class.type: Map<Class<?>, MetaDataRefreshStrategy>
focal_class.var_name: REGISTRY
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/refresh/MetaDataRefreshStrategyFactory.java
focal_class.identifier: MetaDataRefreshStrategyFactory
focal_class.class_method_signature: MetaDataRefreshStrategyFactory.newInstance(final SQLStatementContext<?> sqlStatementContext)
focal_class.full_signature: public static Optional<MetaDataRefreshStrategy> newInstance(final SQLStatementContext<?> sqlStatementContext)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (final SQLStatementContext<?> sqlStatementContext)
focal_class.return: Optional<MetaDataRefreshStrategy>
focal_class.signature: Optional<MetaDataRefreshStrategy> newInstance(final SQLStatementContext<?> sqlStatementContext)
focal_method.body: public static Optional<MetaDataRefreshStrategy> newInstance(final SQLStatementContext<?> sqlStatementContext) {
          return Optional.ofNullable(REGISTRY.get(sqlStatementContext.getClass()));
      }
focal_method.class_method_signature: MetaDataRefreshStrategyFactory.newInstance(final SQLStatementContext<?> sqlStatementContext)
focal_method.full_signature: public static Optional<MetaDataRefreshStrategy> newInstance(final SQLStatementContext<?> sqlStatementContext)
focal_method.identifier: newInstance
focal_method.invocations: ofNullable get getClass
focal_method.modifiers: public static
focal_method.parameters: (final SQLStatementContext<?> sqlStatementContext)
focal_method.return: Optional<MetaDataRefreshStrategy>
focal_method.signature: Optional<MetaDataRefreshStrategy> newInstance(final SQLStatementContext<?> sqlStatementContext)