class MessagingRequestMatchers {

  public static <Req extends MessagingRequest> Matcher<Req> operationEquals(String operation) {
    if (operation == null) throw new NullPointerException("operation == null");
    if (operation.isEmpty()) throw new NullPointerException("operation is empty");
    return new MessagingOperationEquals<>(operation);
  }

}