@@ -0,0 +1,1173 @@
+package io.shardingsphere.core.metadata.datasource.dialect;%0A%0Aimport io.shardingsphere.core.exception.ShardingException;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class H2DataSourceMetaDataTest %7B%0A    %0A    @Test%0A    public void assertGetALLProperties() %7B%0A        H2DataSourceMetaData actual = new H2DataSourceMetaData(%22jdbc:h2:mem:ds_0;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MySQL%22);%0A        assertThat(actual.getHostName(), is(%22mem%22));%0A        assertThat(actual.getPort(), is(-1));%0A        assertThat(actual.getSchemeName(), is(%22ds_0%22));%0A    %7D%0A    %0A    @Test(expected = ShardingException.class)%0A    public void assertGetALLPropertiesFailure() %7B%0A        new H2DataSourceMetaData(%22jdbc:h2:file:/data/sample%22);%0A    %7D%0A    %0A    @Test%0A    public void assertIsInSameDatabaseInstance() %7B%0A        H2DataSourceMetaData target = new H2DataSourceMetaData(%22jdbc:h2:~/ds_0;MODE=MYSQL%22);%0A        H2DataSourceMetaData actual = new H2DataSourceMetaData(%22jdbc:h2:mem:ds_0;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MySQL%22);%0A        assertThat(actual.isInSameDatabaseInstance(target), is(false));%0A    %7D%0A%7D

add H2DataSourceMetaDataTest.java