@Nullable static String method(String fullMethodName) {
    int index = fullMethodName.lastIndexOf('/');
    if (index == -1 || index == 0) return null;
    return fullMethodName.substring(index + 1);
  }
@Test void method_malformed() {
    assertThat(GrpcParser.method("/")).isNull();
  }