### Question:
SortUtils { public static String[] sortedToStrings(HashMap<String,Integer> temp) { List<Map.Entry<String,Integer>> resulttemp = new ArrayList<Map.Entry<String,Integer>>(temp.entrySet()); Collections.sort(resulttemp, new Comparator<Map.Entry<String,Integer>>(){ @Override public int compare(Map.Entry<String,Integer> o1, Map.Entry<String,Integer> o2) { return (o2.getValue() - o1.getValue()); } }); String[] sortedtemp = new String[temp.size()]; for (int k = 0; k < temp.size(); k++) { sortedtemp[k] = resulttemp.get(k).toString(); } return sortedtemp; }  static String sortedToString(HashMap<String,Integer> temp); static String[] sortedToStrings(HashMap<String,Integer> temp); static List<String> sortedToHashMap(HashMap<String, Integer> temp); static List<String> sortedToMap(HashMap<Long, Integer> temp, int N); static HashMap<Long, Integer> sortedToList(HashMap<Long, Integer> temp, int N); static List<HashMap<String, Integer>> sortedToDoubleMap(HashMap<Integer, Integer> temp, String keyname1,
			String keyname2, int num); static List<List<HashMap<String, String>>> getTop10PeerHour(int[][] temp24h,
			HashMap<Integer, String> contentTypes);  }### Answer:
@Test public void testSortedToStrings() { String[] result = SortUtils.sortedToStrings(hs1); assertEquals("ccc=33", result[0]); assertEquals("bbb=22", result[1]); assertEquals("aaa=11", result[2]); }