components/src/test/java/eu/internetofus/common/components/task_manager/TaskTransactionPredicates.java
/**
   * Return a predicate the check that the message of the specified position
   * satisfy the predicate.
   *
   * @param index        of the message.
   * @param checkMessage predicate to satisfy by the message at the specified
   *                     position.
   *
   * @return the predicate to check the message at the specified position.
   */
Return a predicate the check that the message of the specified position
satisfy the predicate.

@param index        of the message.
@param checkMessage predicate to satisfy by the message at the specified
position.

@return the predicate to check the message at the specified position.
Return a predicate the check that the message of the specified position satisfy the predicate . @param index of the message . @param checkMessage predicate to satisfy by the message at the specified position . @return the predicate to check the message at the specified position .
static Predicate<TaskTransaction> messageAt(final int index, final Predicate<Message> checkMessage) {
    return target -> {
      return target.messages != null && target.messages.size() >= index
          && checkMessage.test(target.messages.get(index));
    };
  }
static Predicate < TaskTransaction > messageAt ( final int index , final Predicate < Message > checkMessage ) { return target -> { return target . messages != null && target . messages . size ( ) >= index && checkMessage . test ( target . messages . get ( index ) ) ; } ; }
Return a predicate the check that the message of the specified position
 satisfy the predicate.
Return a predicate the check that the message of the specified position satisfy the predicate .