### Question:
StringUtils { public static String getServiceKey(Map<String, String> ps) { StringBuilder buf = new StringBuilder(); String group = ps.get(Constants.GROUP_KEY); if (group != null && group.length() > 0) { buf.append(group).append("/"); } buf.append(ps.get(Constants.INTERFACE_KEY)); String version = ps.get(Constants.VERSION_KEY); if (version != null && version.length() > 0) { buf.append(":").append(version); } return buf.toString(); }  static boolean isBlank(String str); static boolean isEmpty(String str); static boolean isNotEmpty(String str); static boolean isInteger(String str); static int parseInteger(String str); static Map<String, String> parseQueryString(String qs); static String getServiceKey(Map<String, String> ps); static String toQueryString(Map<String, String> ps); static boolean isEquals(String s1, String s2); static boolean isContains(String values, String value); static boolean isContains(String[] values, String value); static boolean isNumeric(String str); static final String[] EMPTY_STRING_ARRAY; }### Answer:
@Test public void getServiceKey() throws Exception { Map<String, String> ps = new HashMap<String, String>(); ps.put(Constants.GROUP_KEY, "ServiceAAAAA"); ps.put(Constants.INTERFACE_KEY, "com.bocloud.emp.NameService"); ps.put(Constants.VERSION_KEY, "1.0.0"); assertEquals("ServiceAAAAA/com.bocloud.emp.NameService:1.0.0", StringUtils.getServiceKey(ps)); }