/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.shardingsphere.infra.config.datasource.pool.creator;

import com.zaxxer.hikari.HikariDataSource;
import org.apache.shardingsphere.infra.config.datasource.pool.creator.impl.DefaultDataSourcePoolCreator;
import org.apache.shardingsphere.infra.config.datasource.pool.creator.impl.HikariDataSourcePoolCreator;
import org.h2.jdbcx.JdbcDataSource;
import org.junit.Test;

import static org.junit.Assert.assertTrue;

public final class DataSourcePoolCreatorFactoryTest {
    
    @Test
    public void assertDataSourcePoolCreatorExisted() {
        DataSourcePoolCreator actualDataSourcePoolCreator = DataSourcePoolCreatorFactory.getInstance(HikariDataSource.class.getName());
        assertTrue(actualDataSourcePoolCreator instanceof HikariDataSourcePoolCreator);
    }
    
    @Test
    public void assertDataSourcePoolCreatorNotExisted() {
        DataSourcePoolCreator actualDataSourcePoolCreator = DataSourcePoolCreatorFactory.getInstance(JdbcDataSource.class.getName());
        assertTrue(actualDataSourcePoolCreator instanceof DefaultDataSourcePoolCreator);
    }
}

@@ -1308,32 +1308,47 @@
 blic void assert
+GetInstanceWhen
 DataSourcePoolCr
@@ -1376,60 +1376,19 @@
     
-DataSourcePoolCreator actualDataSourcePoolCreator = 
+assertTrue(
 Data
@@ -1461,56 +1461,8 @@
 e())
-;%0A        assertTrue(actualDataSourcePoolCreator
  ins
@@ -1542,16 +1542,31 @@
 d assert
+GetInstanceWhen
 DataSour
@@ -1605,60 +1605,19 @@
     
-DataSourcePoolCreator actualDataSourcePoolCreator = 
+assertTrue(
 Data
@@ -1688,56 +1688,8 @@
 e())
-;%0A        assertTrue(actualDataSourcePoolCreator
  ins

Revise #14150 (#14153)