ProtostuffHelper { public Class getReqClass(String service, String methodName) { String key = buildMethodKey(service, methodName); Class reqClass = requestClassCache.get(key); if (reqClass == null) { String interfaceClass = ConfigUniqueNameGenerator.getInterfaceName(service); Class clazz = ClassUtils.forName(interfaceClass, true); loadProtoClassToCache(key, clazz, methodName); } return requestClassCache.get(key); }  Class getReqClass(String service, String methodName); Class getResClass(String service, String methodName);  }
@Test public void getReqClass() { Class req = protostuffHelper.getReqClass( ProtostuffService.class.getCanonicalName(), "echoStr"); Assert.assertTrue(req == ExampleObj.class); }