### Question:
GMLDatatype extends GeometryDatatype { @Override public String unparse(Object geometry) { if (geometry instanceof GeometryWrapper) { GeometryWrapper geometryWrapper = (GeometryWrapper) geometry; return GMLWriter.write(geometryWrapper); } else { throw new DatatypeFormatException("Object to unparse GMLDatatype is not a GeometryWrapper: " + geometry); } } GMLDatatype(); @Override String unparse(Object geometry); @Override GeometryWrapper read(String geometryLiteral); @Override String toString(); static final String URI; static final GMLDatatype INSTANCE; static final String GML_PREFIX; }### Answer:
@Test public void testUnparse() { String expResult = "<gml:Point xmlns:gml=\"http: GMLDatatype instance = GMLDatatype.INSTANCE; Coordinate coord = new Coordinate(-83.38, 33.95); Point point = GEOMETRY_FACTORY.createPoint(coord); String srsURI = "http: DimensionInfo dimensionInfo = new DimensionInfo(2, 2, 2); GeometryWrapper geometry = new GeometryWrapper(point, srsURI, GMLDatatype.URI, dimensionInfo); String result = instance.unparse(geometry); assertEquals(expResult, result); }