code: public Expectations addApiOutputExpectation(JwtTokenForTest jwtTokenTools, String jsonWebTokenApi, String claimIdentifier, String key) throws Exception {
          Expectations expectations = new Expectations();
          // syntax is a bit different for the "getClaim" results
          String passKeyName = null;
          if (jsonWebTokenApi.contains("getClaim")) {
              passKeyName = key;
          }
          List<String> values = jwtTokenTools.getElementValueAsListOfStrings(key);
  //        Log.info(thisClass, "addApiOutputExpectations", "list of values is: " + values);
          if (!values.isEmpty()) {
              for (String value : values) {
                  expectations.addExpectation(addApiOutputExpectation(jsonWebTokenApi, claimIdentifier, passKeyName, value));
              }
          } else {
              expectations.addExpectation(addApiOutputExpectation(jsonWebTokenApi, claimIdentifier, passKeyName, "null"));
          }
  
          return expectations;
      }
docs: Adds the appropriate claim expectation for the requested claim.
  Some claims will have a key:value and others will have key:<multivalue> and we'll need to build the
  expectation properly. In some cases, we just want to check for the existance of the claim.
  TODO - replace jwtTokenTools
  
  @param jwtTokenTools
  @param jsonWebTokenApi -the jsonWebToken api (the runtime api method that returned the claim value)
  @param claimIdentifier - the descriptive identifier for the claim
  @param key - the claims key
  @return - returns an expectation for the claim
  @throws Exception