DubboClientRequest extends RpcClientRequest implements DubboRequest { @Override public String service() { return DubboParser.service(invoker); } 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 service() { when(invocation.getInvoker()).thenReturn(invoker); when(invoker.getUrl()).thenReturn(url); assertThat(request.service()) .isEqualTo("brave.dubbo.GreeterService"); }