### Question:
MoreCollections { static boolean isEmpty(final Map<?, ?> map) { return map==null || map.isEmpty(); } private  MoreCollections();   }### Answer:
@Test public void nullMapsAreEmpty() throws Exception { assertThat(MoreCollections.isEmpty(null), equalTo(true)); }
@Test public void emptyMapsAreEmpty() throws Exception { assertThat(MoreCollections.isEmpty(Collections.emptyMap()), equalTo(true)); }
@Test public void nonEmptyMapsAreNotEmpty() throws Exception { assertThat(MoreCollections.isEmpty(ImmutableMap.builder().put("key", "value").build()), equalTo(false)); }