### Question:
MapGeometryCreator { public MapGeometrySupport createGeometrySupport(Map<String, Serializable> row) { MapGeometrySupport support = null; Geometry geometry = (Geometry)row.get(GeoPackageColumns.GEOMETRY_COLUMN); if (geometry != null) { support = JTSGeometryToGeometrySupportFactory.createGeometrySupportFromWKTGeometry(geometry, Color.white); } return support; }  MapGeometrySupport createGeometrySupport(Map<String, Serializable> row);  }### Answer:
@Test public void testCreateGeometrySupport() { Map<String, Serializable> row = New.map(); row.put(GeoPackageColumns.GEOMETRY_COLUMN, new GeometryFactory().createPoint(new Coordinate(10, 11, 12))); MapGeometryCreator creator = new MapGeometryCreator(); MapGeometrySupport support = creator.createGeometrySupport(row); SimpleMapPointGeometrySupport simpleSupport = (SimpleMapPointGeometrySupport)support; assertEquals(Color.white, simpleSupport.getColor()); assertEquals(11, simpleSupport.getLocation().getLatD(), 0d); assertEquals(10, simpleSupport.getLocation().getLonD(), 0d); assertEquals(12, simpleSupport.getLocation().getAltitude().getMeters(), 0d); }
@Test public void testCreateGeometrySupportNoGeom() { Map<String, Serializable> row = New.map(); MapGeometryCreator creator = new MapGeometryCreator(); MapGeometrySupport support = creator.createGeometrySupport(row); assertNull(support); }