code: public S handleResultIf(Predicate<R> resultPredicate) {
      Assert.notNull(resultPredicate, "resultPredicate");
      failureConditions.add(resultPredicateFor(resultPredicate));
      return (S) this;
    }
docs: Specifies that a failure has occurred if the {@code resultPredicate} matches the execution result.
  
  @throws NullPointerException if {@code resultPredicate} is null