private static Optional<Dialect> findByJdbcUrl(String jdbcConnectionUrl) {
    return findDialect(dialect -> dialect != null && dialect.matchesJdbcUrl(StringUtils.trimToEmpty(jdbcConnectionUrl)));
  }
@Test
  public void testFindByJdbcUrl() {
    Dialect d = DialectUtils.find(null, "jdbc:postgresql:foo:bar");
    assertThat(d).isInstanceOf(PostgreSql.class);
  }