code: public Expectation[] retrieveRecordedExpectations(HttpRequest httpRequest) {
          String recordedExpectations = retrieveRecordedExpectations(httpRequest, Format.JSON);
          if (!Strings.isNullOrEmpty(recordedExpectations) && !recordedExpectations.equals("[]")) {
              return expectationSerializer.deserializeArray(recordedExpectations);
          } else {
              return new Expectation[0];
          }
      }
docs: Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
  
  @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
  @return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times