GrpcServerRequest extends RpcServerRequest implements GrpcRequest { @Override public String method() { return GrpcParser.method(call.getMethodDescriptor().getFullMethodName()); } GrpcServerRequest(Map<String, Key<String>> nameToKey, ServerCall<?, ?> call, Metadata headers); @Override Object unwrap(); @Override String method(); @Override String service(); ServerCall<?, ?> call(); @Override MethodDescriptor<?, ?> methodDescriptor(); @Override Metadata headers();  }
@Test public void method() { when(call.getMethodDescriptor()).thenReturn(methodDescriptor); assertThat(request.service()).isEqualTo("helloworld.Greeter"); }