public void convertsPolygonToDbObjectAndBackCorrectly() {
Polygon polygon = new Polygon(new Point(1, 2), new Point(2, 3), new Point(3, 4), new Point(5, 6));
DBObject dbo = GeoConverters.PolygonToDbObjectConverter.INSTANCE.convert(polygon);
Shape shape = GeoConverters.DbObjectToPolygonConverter.INSTANCE.convert(dbo);
assertThat(shape, is((org.springframework.data.geo.Shape) polygon));
}