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

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