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

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