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

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