components/src/test/java/eu/internetofus/common/components/service/MessagePredicates.java
/**
   * Check that the message has the specified app.
   *
   * @param app identifier to match for the message.
   *
   * @return the predicate to do this match.
   */
Check that the message has the specified app.
@param app identifier to match for the message.

@return the predicate to do this match.
Check that the message has the specified app . @param app identifier to match for the message . @return the predicate to do this match .
static Predicate<Message> appIs(final String app) {
    return msg -> {
      return msg.appId.equals(app);
    };
  }
static Predicate < Message > appIs ( final String app ) { return msg -> { return msg . appId . equals ( app ) ; } ; }
Check that the message has the specified app.
Check that the message has the specified app .