PropertyDriver implements Driver { public int getMajorVersion() { return 1; } PropertyDriver(); Connection connect(String url, Properties info); boolean acceptsURL(String url); DriverPropertyInfo[] getPropertyInfo(String url, Properties info); int getMajorVersion(); int getMinorVersion(); boolean jdbcCompliant(); Logger getParentLogger();  }
@Test void testGetMajorVersion() throws Exception { assertEquals(1, DriverManager.getDriver("jdbc:property:0").getMajorVersion()); }