@Test
public void classifiesElementsMapIterator() {

	Map<ShapeElementType, MapElementGroup> map = new TreeMap<>();
	MapElementGroup.classifiesElements(map,
			Arrays.asList(this.point, this.multiPoint, this.polyline, this.polygon, this.circle).iterator());
	assertSame(this.point, map.get(ShapeElementType.POINT).elements.iterator().next());
	assertSame(this.multiPoint, map.get(ShapeElementType.MULTIPOINT).elements.iterator().next());
	assertSame(this.polyline, map.get(ShapeElementType.POLYLINE).elements.iterator().next());
	assertSame(this.polygon, map.get(ShapeElementType.POLYGON).elements.iterator().next());
}