@Test
public void asMap() throws Exception {

    multiMap.put("firstBucket", new TestEntity("1", "v1"));
    multiMap.put("secondBucket", new TestEntity("2", "v2"));
    multiMap.put("secondBucket", new TestEntity("3", "v3"));
    final Map<String, Collection<TestEntity>> map = multiMap.asMap();
    assertThat(map).containsOnlyKeys("firstBucket", "secondBucket");
    assertThat(map.get("firstBucket")).hasSize(1)
            .contains(new TestEntity("1", "v1"));
    assertThat(map.get("secondBucket")).hasSize(2).containsExactly(
            new TestEntity("2", "v2"),
            new TestEntity("3", "v3")
    );
}