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

@return the predicate to do this match.
Check that the interaction has the specified sender . @param sender identifier to match for the interaction . @return the predicate to do this match .
static Predicate<Interaction> senderIs(final String sender) {
    return interaction -> {
      return interaction.senderId.equals(sender);
    };
  }
static Predicate < Interaction > senderIs ( final String sender ) { return interaction -> { return interaction . senderId . equals ( sender ) ; } ; }
Check that the interaction has the specified sender.
Check that the interaction has the specified sender .