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

@param checkAttributes predicate to check the attributes.

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