### Question:
RpcBindingConverter implements BindingConverter<RpcBindingParam, RpcBinding> { protected List<RpcBindingMethodInfo> parseSofaMethods(SofaMethod[] sofaMethods) { List<RpcBindingMethodInfo> rpcBindingMethodInfos = new ArrayList<RpcBindingMethodInfo>(); for (SofaMethod sofaMethod : sofaMethods) { RpcBindingMethodInfo rpcBindingMethodInfo = new RpcBindingMethodInfo(); rpcBindingMethodInfo.setName(sofaMethod.name()); rpcBindingMethodInfo.setType(sofaMethod.invokeType()); rpcBindingMethodInfo.setTimeout(sofaMethod.timeout()); rpcBindingMethodInfo.setRetries(sofaMethod.retries()); rpcBindingMethodInfo.setCallbackClass(sofaMethod.callbackClass()); rpcBindingMethodInfo.setCallbackRef(sofaMethod.callbackRef()); rpcBindingMethodInfos.add(rpcBindingMethodInfo); } return rpcBindingMethodInfos; }  @Override RpcBinding convert(RpcBindingParam bindingParam, BindingConverterContext bindingConverterContext); @Override RpcBinding convert(Element element, BindingConverterContext bindingConverterContext); @Override abstract RpcBinding convert(SofaService sofaServiceAnnotation,
                                       SofaServiceBinding sofaServiceBindingAnnotation,
                                       BindingConverterContext bindingConverterContext); @Override abstract RpcBinding convert(SofaReference sofaReferenceAnnotation,
                                       SofaReferenceBinding sofaReferenceBindingAnnotation,
                                       BindingConverterContext bindingConverterContext);  }### Answer:
@Test public void parseSofaMethods() { RpcBindingConverter rpcBindingConverter = new BoltBindingConverter(); SofaReference reference = null; try { reference = RpcBindingConverterTest.class.getDeclaredField("testAnnotation").getAnnotation( SofaReference.class); } catch (NoSuchFieldException e) { e.printStackTrace(); } List<RpcBindingMethodInfo> result = rpcBindingConverter.parseSofaMethods(reference.binding().methodInfos()); Assert.assertEquals(1, result.size()); final RpcBindingMethodInfo rpcBindingMethodInfo = result.get(0); Assert.assertEquals("test", rpcBindingMethodInfo.getName()); Assert.assertEquals(1, rpcBindingMethodInfo.getRetries().intValue()); Assert.assertEquals("callback", rpcBindingMethodInfo.getType()); Assert.assertEquals("class", rpcBindingMethodInfo.getCallbackClass()); Assert.assertEquals("ref", rpcBindingMethodInfo.getCallbackRef()); Assert.assertEquals(2000, rpcBindingMethodInfo.getTimeout().intValue()); }