### Question:
MapUtils { public static int getSum(HashMap<Long, Integer> table) { int sum = 0; for (Entry<Long, Integer> temp : table.entrySet()) { sum += temp.getValue(); } return sum; }  static HashMap<String, String> tranToRatio(HashMap<Integer, Integer> table); static HashMap<Long, Integer> unionMaps(List<HashMap<Long, Integer>> table); static int getSum(HashMap<Long, Integer> table); static int[] getRealUses(HashMap<Long, Integer> table, int num); static String[] getRealRatio(HashMap<Long, Integer> table, int num); static int[] getRealCount(HashMap<Long, Integer> table, int num); static int getMaxKey(HashMap<Integer, String> map);  }### Answer:
@Test public void testGetSum() { assertEquals(34, MapUtils.getSum(map1)); }