BenchmarkUtils { public static int getInt(Map map, Object key, int def) { return Utils.getInt(Utils.get(map, key, def)); } private  BenchmarkUtils(); static double max(Iterable<Double> iterable); static double avg(Iterable<Double> iterable); static void putIfAbsent(Map map, Object key, Object val); static int getInt(Map map, Object key, int def); static boolean ifAckEnabled(Config config);  }
@Test public void testGetInt() { Map map = Maps.newHashMap(); assertThat(BenchmarkUtils.getInt(map, "key1", 1)).isEqualTo(1); map.put("key1", 2); assertThat(BenchmarkUtils.getInt(map, "key1", 1)).isEqualTo(2); map.put("key2", 3L); assertThat(BenchmarkUtils.getInt(map, "key2", 1)).isEqualTo(3); }