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

@param checkAttributes predicate to check the attributes.

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