### Question:
ThriftUtils { public static String generateMethodArgsClassNameThrift(String serviceName, String methodName) { int index = serviceName.indexOf("$"); if (index > 0) { return new StringBuilder(32) .append(serviceName.substring(0, index + 1)) .append(methodName) .append("_args") .toString(); } return null; }  static String generateMethodArgsClassName(String serviceName, String methodName); static String generateMethodResultClassName(String serviceName, String method); static String generateSetMethodName(String fieldName); static String generateGetMethodName(String fieldName); static String generateMethodArgsClassNameThrift(String serviceName, String methodName); static String generateMethodResultClassNameThrift(String serviceName, String methodName);  }### Answer:
@Test public void testGenerateMethodArgsClassNameThrift() { Assertions.assertEquals(org.apache.dubbo.rpc.gen.thrift.Demo.echoString_args.class.getName(), ThriftUtils.generateMethodArgsClassNameThrift( org.apache.dubbo.rpc.gen.thrift.Demo.Iface.class.getName(), "echoString")); Assertions.assertEquals(org.apache.dubbo.rpc.gen.thrift.Demo.echoString_args.class.getName(), ExtensionLoader.getExtensionLoader(ClassNameGenerator.class) .getExtension(ThriftClassNameGenerator.NAME).generateArgsClassName( org.apache.dubbo.rpc.gen.thrift.Demo.Iface.class.getName(), "echoString")); }
@Test public void testGenerateMethodArgsClassNameThrift() { Assert.assertEquals(com.alibaba.dubbo.rpc.gen.thrift.Demo.echoString_args.class.getName(), ThriftUtils.generateMethodArgsClassNameThrift( com.alibaba.dubbo.rpc.gen.thrift.Demo.Iface.class.getName(), "echoString")); Assert.assertEquals(com.alibaba.dubbo.rpc.gen.thrift.Demo.echoString_args.class.getName(), ExtensionLoader.getExtensionLoader(ClassNameGenerator.class) .getExtension(ThriftClassNameGenerator.NAME).generateArgsClassName( com.alibaba.dubbo.rpc.gen.thrift.Demo.Iface.class.getName(), "echoString")); }