@Test
public void prepareDataSourceWithDatabaseUrl() throws SQLException {

    // Test preparing data source with existing catalog
    DataSourceProperties dataSource = new DataSourceProperties("user", "password", "jdbc:postgresql://localhost:5432/kylo");
    final JdbcSchemaParser parser = new PostgreSqlSchemaParser();
    DataSourceProperties prepared = parser.prepareDataSource(dataSource, null);
    Assert.assertEquals(dataSource, prepared);
    Assert.assertEquals(dataSource.getUrl(), prepared.getUrl());
}