JdbcDriver implements Driver { @Override public String toString() { return getClass().getSimpleName() + "[lastConnectUrl=" + Parameters.getLastConnectUrl() + ", lastConnectInfo=" + Parameters.getLastConnectInfo() + ']'; }  @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 testToString() { final String string = driver.toString(); assertNotNull("toString not null", string); assertFalse("toString not empty", string.isEmpty()); }