/*
 * 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.core.rewrite.builder;

import org.junit.Before;
import org.junit.Test;

public final class BaseParameterBuilderTest {
    
    private BaseParameterBuilder baseParameterBuilder;
    
    @Before
    public void setUp() {
    }
    
    @Test
    public void assertGetParameters() {
    }
    
    @Test
    public void assertGetParameters1() {
    }
    
    @Test
    public void assertGetOriginalParameters() {
    }
    
    @Test
    public void assertGetAddedIndexAndParameters() {
    }
    
    @Test
    public void assertGetReplacedIndexAndParameters() {
    }
}

@@ -864,198 +864,1494 @@
 ort 
-org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic final class BaseParameterBuilderTest %7B%0A    %0A    private BaseParameterBuilder baseParameterBuilder;%0A    %0A    @Before%0A    public void setUp() %7B
+com.google.common.base.Optional;%0Aimport org.apache.shardingsphere.core.optimize.statement.sharding.dml.select.Pagination;%0Aimport org.apache.shardingsphere.core.optimize.statement.sharding.dml.select.ShardingSelectOptimizedStatement;%0Aimport org.apache.shardingsphere.core.route.SQLRouteResult;%0Aimport org.apache.shardingsphere.core.route.type.RoutingResult;%0Aimport org.hamcrest.core.AnyOf;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.mockito.ArgumentMatchers.any;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic final class BaseParameterBuilderTest %7B%0A    %0A    private BaseParameterBuilder baseParameterBuilder;%0A    %0A    @Before%0A    public void setUp() %7B%0A        baseParameterBuilder = new BaseParameterBuilder()%0A    %7D%0A    %0A    private SQLRouteResult createSQLRouteResult() %7B%0A        Pagination pagination = mock(Pagination.class);%0A        when(pagination.getOffsetParameterIndex()).thenReturn(Optional.of(0));%0A        when(pagination.getRowCountParameterIndex()).thenReturn(Optional.of(1));%0A        when(pagination.getRevisedRowCount(any(ShardingSelectOptimizedStatement.class))).thenReturn(6);%0A        ShardingSelectOptimizedStatement optimizedStatement = mock(ShardingSelectOptimizedStatement.class);%0A        when(optimizedStatement.getPagination()).thenReturn(pagination);%0A        SQLRouteResult result = new SQLRouteResult(optimizedStatement);%0A        result.setRoutingResult(new RoutingResult());%0A        return result;
 %0A   

add createSQLRouteResult()