@Override
    public <T> T getProxy(Invoker<T> invoker) throws RpcException {
        return StubSuppliers.createStub(invoker.getUrl().getServiceInterface(), invoker);
    }
@Test
    void getProxy() {
        Invoker<?> invoker = Mockito.mock(Invoker.class);
        URL url = Mockito.mock(URL.class);
        when(invoker.getUrl()).thenReturn(url);
        String service = "SERV_PROX";
        when(url.getServiceInterface()).thenReturn(service);
        StubSuppliers.addSupplier(service, i -> invoker);
        Assertions.assertEquals(invoker, factory.getProxy(invoker));
        Assertions.assertEquals(invoker, factory.getProxy(invoker, false));
    }