public void testBinaryCycAccess4() {
    System.out.println("\n**** testBinaryCycAccess 4 ****");

    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());
      }


      //cycAccess.traceOnDetailed();
      doTestCycAccess4(cycAccess);
    } finally {
      if (cycAccess != null) {
        cycAccess.close();
        cycAccess = null;
      }
    }
    System.out.println("**** testBinaryCycAccess 4 OK ****");
  }