class RpcRequestMatchers {

  public static <Req extends RpcRequest> Matcher<Req> methodEquals(String method) {
    if (method == null) throw new NullPointerException("method == null");
    if (method.isEmpty()) throw new NullPointerException("method is empty");
    return new RpcMethodEquals<>(method);
  }

}