@Test
public void testAsLiteralConversionDatatype() {

    String lexicalForm = "POINT(-83.38 33.95)";
    GeometryWrapper instance = WKTDatatype.INSTANCE.parse(lexicalForm);
    Literal result = instance.asLiteral(GMLDatatype.INSTANCE);
    String gmlGeometryLiteral = "<gml:Point xmlns:gml=\"http://www.opengis.net/ont/gml\" srsName=\"http://www.opengis.net/def/crs/OGC/1.3/CRS84\"><gml:pos>-83.38 33.95</gml:pos></gml:Point>";
    Literal expResult = ResourceFactory.createTypedLiteral(gmlGeometryLiteral, GMLDatatype.INSTANCE);
    assertEquals(expResult, result);
}