static void runTest() throws Exception {
  Class.forName("org.h2.Driver");
  Class.forName("org.h2.upgrade.v1_1.Driver");
  Driver d1=DriverManager.getDriver("jdbc:h2:mem:test");
  Driver d2=DriverManager.getDriver("jdbc:h2v1_1:mem:test");
  Connection connection;
  connection=DriverManager.getConnection("jdbc:h2:mem:test");
  DriverManager.deregisterDriver(d1);
  DriverManager.deregisterDriver(d2);
  connection.close();
  connection=null;
}

static void runTest ( ) throws Exception { Class . forName ( "org.h2.Driver" ) ; Class . forName ( "org.h2.upgrade.v1_1.Driver" ) ; Driver d1 = DriverManager . getDriver ( "jdbc:h2:mem:test" ) ; Driver d2 = DriverManager . getDriver ( "jdbc:h2v1_1:mem:test" ) ; Connection connection ; connection = DriverManager . getConnection ( "jdbc:h2:mem:test" ) ; DriverManager . deregisterDriver ( d1 ) ; DriverManager . deregisterDriver ( d2 ) ; connection . close ( ) ; connection = null ; }
this method is called using reflection .
