JdbcDriver implements Driver { @Override public boolean acceptsURL(String url) throws SQLException { for (final StackTraceElement element : Thread.currentThread().getStackTrace()) { if (element.getClassName().endsWith("dbcp.BasicDataSource")) { return false; } } return true; }  @Override Connection connect(String url, Properties info); @Override boolean acceptsURL(String url); @Override int getMajorVersion(); @Override int getMinorVersion(); @Override DriverPropertyInfo[] getPropertyInfo(String url, Properties info); @Override boolean jdbcCompliant(); @Override String toString(); @Override Logger getParentLogger();  }
@Test public void testAcceptsURL() throws SQLException { assertTrue("acceptsURL", driver.acceptsURL(null)); }