### Question:
ExploreDriver implements Driver { private String getString(ExploreConnectionParams params, ExploreConnectionParams.Info param, String defaultValue) { return Iterables.getFirst(params.getExtraInfos().get(param), defaultValue); }  @Override Connection connect(String url, Properties info); @Override boolean acceptsURL(String url); @Override DriverPropertyInfo[] getPropertyInfo(String s, Properties properties); @Override int getMajorVersion(); @Override int getMinorVersion(); @Override boolean jdbcCompliant(); @Override java.util.logging.Logger getParentLogger();  }### Answer:
@Test public void testExploreDriver() throws Exception { Connection connection = DriverManager.getConnection(exploreServiceUrl); PreparedStatement statement; ResultSet resultSet; statement = connection.prepareStatement("fake sql query"); resultSet = statement.executeQuery(); Assert.assertEquals(resultSet, statement.getResultSet()); Assert.assertTrue(resultSet.next()); Assert.assertEquals(1, resultSet.getInt(1)); Assert.assertEquals("one", resultSet.getString(2)); Assert.assertTrue(resultSet.next()); Assert.assertEquals(2, resultSet.getInt(1)); Assert.assertEquals("two", resultSet.getString(2)); Assert.assertFalse(resultSet.next()); resultSet.close(); try { resultSet.next(); Assert.fail(); } catch (SQLException e) { } statement.close(); statement = connection.prepareStatement("fake sql query 2"); Assert.assertTrue(statement.execute()); resultSet = statement.getResultSet(); Assert.assertTrue(resultSet.next()); Assert.assertEquals(1, resultSet.getInt("column1")); Assert.assertEquals("one", resultSet.getString("column2")); Assert.assertTrue(resultSet.next()); Assert.assertEquals(2, resultSet.getInt("column1")); Assert.assertEquals("two", resultSet.getString("column2")); Assert.assertFalse(resultSet.next()); resultSet.close(); try { resultSet.next(); Assert.fail(); } catch (SQLException e) { } statement.close(); }