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<Req>(method);
  }
@Test void methodEquals_unmatched_mixedCase() {
    when(request.method()).thenReturn("Check");

    assertThat(methodEquals("check").matches(request)).isFalse();
  }