DimensionFactory { public Map<String, Integer> create(int dimension) { return ImmutableSortedMap.of("xs", dimension); }  Map<String, Integer> create(int dimension);  }
@Test public void should_create_dimension_map() throws Exception { DimensionFactory dimensionFactory = new DimensionFactory(); Map<String, Integer> dimensions = dimensionFactory.create(12); assertThat(dimensions).containsOnlyKeys("xs"); assertThat(dimensions).containsValue(12); }