code: public Expectation[] retrieveActiveExpectations(HttpRequest httpRequest) {
          String activeExpectations = retrieveActiveExpectations(httpRequest, Format.JSON);
          if (!Strings.isNullOrEmpty(activeExpectations) && !activeExpectations.equals("[]")) {
              return expectationSerializer.deserializeArray(activeExpectations);
          } else {
              return new Expectation[0];
          }
      }
docs: Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
  
  @param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
  @return an array of all expectations that have been setup and have not expired