H2DatabaseType implements BranchDatabaseType { @Override public H2DataSourceMetaData getDataSourceMetaData(final String url, final String username) { return new H2DataSourceMetaData(url); }  @Override String getName(); @Override Collection<String> getJdbcUrlPrefixes(); @Override H2DataSourceMetaData getDataSourceMetaData(final String url, final String username); @Override DatabaseType getTrunkDatabaseType();  }
@Test public void assertGetDataSourceMetaData() { assertThat(new H2DatabaseType().getDataSourceMetaData("jdbc:h2:~:primary_ds_0", "sa"), instanceOf(H2DataSourceMetaData.class)); assertThat(new H2DatabaseType().getDataSourceMetaData("jdbc:h2:mem:primary_ds_0", "sa"), instanceOf(H2DataSourceMetaData.class)); }