MySQLRecognizer implements JDBCDriverURLRecognizer { @Override public String getDriverClassName() { try { Class.forName("com.mysql.cj.jdbc.Driver"); return "com.mysql.cj.jdbc.Driver"; } catch (final ClassNotFoundException ignore) { return "com.mysql.jdbc.Driver"; } }  @Override String getDatabaseType(); @Override Collection<String> getURLPrefixes(); @Override String getDriverClassName();  }
@Test public void assertGetDriverClassName() { assertThat(recognizer.getDriverClassName(), is("com.mysql.jdbc.Driver")); }