code: public static void main(String[] args) throws Exception {
          if (args.length == 6) {
              DriverShim.loadAndRegister(new File(args[0]), args[1]);
              Connection conn =
                      DriverManager.getConnection(args[2], args[3], args[4]);
              String tbl = args[5];
              PreparedStatement st = conn.prepareStatement("SELECT COUNT(*) FROM ?");
              st.setString(1, tbl);
              ResultSet rs = st.executeQuery();
              rs.next();
              System.out.println("The " + tbl + " table has " + rs.getInt(1)
                      + " rows.");
              rs.close();
              st.close();
              conn.close();
          } else {
              System.out.println("Usage: java -cp . DriverShim someDriver.jar"
                      + " org.SomeDriver jdbcURL name pwd tbl");
              System.exit(1);
          }
      }
docs: Command-line test. Dynamically loads the driver given at the command
  line, opens a connection, and get the row count of the given table to
  prove it worked. Usage: java -cp . DriverShim someDriver.jar
  org.SomeDriver jdbcURL name pwd tbl