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

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