components/src/test/java/eu/internetofus/common/components/service/MessagePredicates.java
/**
   * Return a predicate the check that the message attributes satisfy the
   * predicate.
   *
   * @param checkAttributes predicate to check the attributes.
   *
   * @return the predicate to check the message attributes.
   */
Return a predicate the check that the message attributes satisfy the
predicate.

@param checkAttributes predicate to check the attributes.

@return the predicate to check the message attributes.
Return a predicate the check that the message attributes satisfy the predicate . @param checkAttributes predicate to check the attributes . @return the predicate to check the message attributes .
static Predicate<Message> attributesAre(final Predicate<JsonObject> checkAttributes) {
    return target -> {
      return target.attributes != null && checkAttributes.test(target.attributes);
    };
  }
static Predicate < Message > attributesAre ( final Predicate < JsonObject > checkAttributes ) { return target -> { return target . attributes != null && checkAttributes . test ( target . attributes ) ; } ; }
Return a predicate the check that the message attributes satisfy the
 predicate.
Return a predicate the check that the message attributes satisfy the predicate .