private ContainerInfo updateWithAppServerInfo(
      ContainerInfo appServerInfo, int clusterPortOffset) {
    try {

      String appServerContextRootStr =
          isRelative(testContext.getTestClass())
              ? getAuthServerContextRoot(clusterPortOffset)
              : getAppServerContextRoot(clusterPortOffset);

      appServerInfo.setContextRoot(new URL(appServerContextRootStr));

    } catch (MalformedURLException ex) {
      throw new IllegalArgumentException(ex);
    }
    return appServerInfo;
  }