ProxyFactory { public static Invoker getInvoker(Object proxyObject, String proxyType) { try { ExtensionClass<Proxy> ext = ExtensionLoaderFactory.getExtensionLoader(Proxy.class) .getExtensionClass(proxyType); if (ext == null) { throw new SofaRpcRuntimeException(LogCodes.getLog(LogCodes.ERROR_LOAD_EXT, "Registry", proxyType)); } Proxy proxy = ext.getExtInstance(); return proxy.getInvoker(proxyObject); } catch (SofaRpcRuntimeException e) { throw e; } catch (Throwable e) { throw new SofaRpcRuntimeException(LogCodes.getLog(LogCodes.ERROR_LOAD_EXT, "Registry", proxyType)); } }  static T buildProxy(String proxyType, Class<T> clazz, Invoker proxyInvoker); static Invoker getInvoker(Object proxyObject, String proxyType);  }
@Test public void getInvoker() { Invoker invoke = ProxyFactory.getInvoker(null, "test"); Assert.assertEquals(invoke, null); }