EnvironmentDriver implements Driver { @Override public boolean acceptsURL(String url) throws SQLException { return url != null && url.contains("jdbc:environment:"); } EnvironmentDriver(); @Override Connection connect(String url, Properties info); @Override boolean acceptsURL(String url); @Override DriverPropertyInfo[] getPropertyInfo(String url, Properties info); @Override int getMajorVersion(); @Override int getMinorVersion(); @Override boolean jdbcCompliant(); @Override Logger getParentLogger();  }
@Test void testAcceptsURL() throws Exception { assertNotNull(DriverManager.getDriver("jdbc:environment:0")); }