@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);
}