public void testHLIDGeneration() {
    System.out.println("\n**** testHLIDGeneration ****");
    CycAccess cycAccess = null;
    try {
      try {
        if (connectionMode == LOCAL_CYC_CONNECTION) {
          cycAccess = new CycAccess(testHostName, testBasePort);
        } else if (connectionMode == SOAP_CYC_CONNECTION) {
          cycAccess = new CycAccess(endpointURL, testHostName, testBasePort);
        } else {
          fail("Invalid connection mode " + connectionMode);
        }
      } catch (Throwable e) {
        fail(e.toString());
      }
      HLIDGenerationTest(1, cycAccess);
      HLIDGenerationTest(0, cycAccess);
      HLIDGenerationTest(-1, cycAccess);
      //the following two tests are broken because of an apparent problem
      //in sending 1.0 over to Cyc via the API (it seems to come out on the
      //Cyc side as 1 instead of 1.0 or 1.0d0
//    HLIDGenerationTest(-1.0, cycAccess);
//    HLIDGenerationTest(1.0, cycAccess);
      HLIDGenerationTest(-1.1231231, cycAccess);
      HLIDGenerationTest(-12385341.1231231, cycAccess);

      HLIDGenerationTest("", cycAccess);
      HLIDGenerationTest("The quick brown fox jumps over the lazy dog", cycAccess);

      System.out.println("**** testHLIDGeneration OK ****");
    } finally {
      if (cycAccess != null) {
        cycAccess.close();
        cycAccess = null;
      }
    }
  }