### Question:
MapUtils { public static int[] getRealUses(HashMap<Long, Integer> table, int num) { int[] result = new int[2]; for (Entry<Long, Integer> temp : table.entrySet()) { if (temp.getValue() >= num) { result[0]++; result[1] += temp.getValue(); } } return result; }  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 testGetRealUses() { assertEquals(2, MapUtils.getRealUses(map3, 90)[0]); assertEquals(438, MapUtils.getRealUses(map3, 90)[1]); }