public static void main(String[] args) {
    System.out.println("Starting.");
    if (args.length > 0 && args[0] != null) {
      testHostName = args[0];
    }
    if (args.length > 1 && args[1] != null) {
      testBasePort = Integer.parseInt(args[1]);
    }
    try {
      TestRunner.run(suite());
    } catch (Throwable e) {
      e.printStackTrace();
    } finally {
      System.out.println("Finished.");
    }
    // kill all threads when exiting.
    System.exit(0);
  }