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

@return the predicate to do this match.
Check that the state has the specified community . @param community identifier to match for the state . @return the predicate to do this match .
static Predicate<State> communityIs(final String community) {
    return state -> {
      return state.communityId.equals(community);
    };
  }
static Predicate < State > communityIs ( final String community ) { return state -> { return state . communityId . equals ( community ) ; } ; }
Check that the state has the specified community.
Check that the state has the specified community .