### Question:
JdkProxyFactory implements ProxyFactory { @Override public <T> T getProxy(ClusterHandler<T> handler) { Class<?>[] interfaces = new Class<?>[]{handler.getInterface()}; return getProxyWithInterface(handler, interfaces); }  @Override T getProxy(ClusterHandler<T> handler); T getProxyWithInterface(ClusterHandler<T> handler, Class<?>[] interfaces);  }### Answer:
@Test public void testGetProxy() { JdkProxyFactory factory = new JdkProxyFactory(); ReferenceConfig config = new ReferenceConfig(); config.setRegistry("mock: config.setAppkey("com.meituan.octo.dorado.client"); config.setRemoteAppkey("com.meituan.octo.dorado.server"); config.setProtocol("mock"); config.setServiceInterface(HelloService.class); ClientConfig clientConfig = new ClientConfig(config); ClusterHandler<HelloService> handler = new MockCluster.MockClusterHandler(new InvokerRepository(clientConfig)); Object service = factory.getProxy(handler); Assert.assertTrue(service instanceof HelloService); }