components/src/test/java/eu/internetofus/common/components/service/MessagePredicates.java
/**
   * Check that the message has the specified receiver.
   *
   * @param receiver identifier to match for the message.
   *
   * @return the predicate to do this match.
   */
Check that the message has the specified receiver.
@param receiver identifier to match for the message.

@return the predicate to do this match.
Check that the message has the specified receiver . @param receiver identifier to match for the message . @return the predicate to do this match .
static Predicate<Message> receiverIs(final String receiver) {
    return msg -> {
      return msg.receiverId.equals(receiver);
    };
  }
static Predicate < Message > receiverIs ( final String receiver ) { return msg -> { return msg . receiverId . equals ( receiver ) ; } ; }
Check that the message has the specified receiver.
Check that the message has the specified receiver .