@Test public void testToImmutableMap_empty() {

  ImmutableList<Town> towns = ImmutableList.of();
  assertThat(
          BiStream.from(towns, Town::getState, town -> town)
              .collect(toImmutableMap(summingInt(Town::getPopulation))))
      .isEmpty();
}