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

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