/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed 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.
 * </p>
 */

package io.shardingsphere.core.yaml.sharding;

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

public class YamlKeyGeneratorConfigurationTest {
    
    @Before
    public void setUp() {
    }
    
    @Test
    public void testGetKeyGenerator() {
    }
    
    @Test
    public void testGetColumn() {
    }
    
    @Test
    public void testGetType() {
    }
    
    @Test
    public void testGetClassName() {
    }
    
    @Test
    public void testGetProps() {
    }
    
    @Test
    public void testSetColumn() {
    }
    
    @Test
    public void testSetType() {
    }
    
    @Test
    public void testSetClassName() {
    }
    
    @Test
    public void testSetProps() {
    }
}

@@ -671,46 +671,190 @@
 ort 
-org.junit.Before;%0Aimport org.junit.Tes
+io.shardingsphere.core.keygen.SnowflakeKeyGenerator;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertTha
 t;%0A%0A
@@ -978,27 +978,29 @@
 public void 
-tes
+asser
 tGetKeyGener
@@ -1003,16 +1003,29 @@
 enerator
+WithClassName
 () %7B%0A   
@@ -1029,443 +1029,338 @@
     
-%7D%0A
     
-%0A    @Test%0A    public void testGetColumn() %7B%0A    %7D%0A    %0A    @Test%0A    public void testGetType() %7B
+YamlKeyGeneratorConfiguration keyGeneratorConfiguration = new YamlKeyGeneratorConfiguration();
 %0A    
-%7D%0A
     
-%0A    @Test%0A    public void testGetClassName() %7B%0A    %7D%0A    %0A    @Test%0A    public void testGetProps() %7B%0A    %7D%0A    %0A    @Test%0A    public void testSetColumn() %7B
+keyGeneratorConfiguration.setClassName(%22io.shardingsphere.core.keygen.SnowflakeKeyGenerator%22);
 %0A    
-%7D%0A
     
-%0A    @Test%0A    public void testSetType() %7B%0A    %7D%0A    %0A    @Test%0A    public void testSetClassName() %7B%0A    %7D%0A    %0A    @Test%0A    public void testSetProps() %7B
+assertThat(keyGeneratorConfiguration.getKeyGenerator().getClass().getName(), is(SnowflakeKeyGenerator.class.getName()));
 %0A   

add assertGetKeyGeneratorWithClassName()