DubboClientRequest extends RpcClientRequest implements DubboRequest { @Override public String method() { return DubboParser.method(invocation); } DubboClientRequest(Invoker<?> invoker, Invocation invocation, Map<String, String> attachments); @Override Invoker<?> invoker(); @Override Invocation invocation(); @Override Invocation unwrap(); @Override String method(); @Override String service(); @Override boolean parseRemoteIpAndPort(Span span);  }
@Test public void method() { when(invocation.getMethodName()).thenReturn("sayHello"); assertThat(request.method()).isEqualTo("sayHello"); }