ServiceUtil { public static String getMethodName(ServiceMethod serviceMethod) { String name = serviceMethod.getName(); String formattedName = Formatter.toCamelCase(name); if (isReservedKeyword(formattedName)) { return formattedName + '_'; } return formattedName; } private  ServiceUtil(); static String getClassName(Service service); static String getMethodName(ServiceMethod serviceMethod);  }
@Test void getMethodName() { String name = ServiceUtil.getMethodName(serviceMethod); assertEquals("serviceMethod", name); }
@Test void getMethodName_reservedKeyword() { serviceMethod.setName("interface"); String name = ServiceUtil.getMethodName(serviceMethod); assertEquals("interface_", name); }