req.setVersion("1.1.0");
req.setHandle("testHandle");
req.setOutputFormat("GML2");
req.setTraverseXlinkDepth("3");
req.setTraverseXlinkExpiry(BigInteger.valueOf(2));
GmlObjectId gmlObjectId = filterFac.gmlObjectId("gmlid.1");
req.setGmlObjectId(gmlObjectId);
}
final Document dom = encode(req, WFS.GetGmlObject);
final Element root = dom.getDocumentElement();
assertName(WFS.GetGmlObject, root);
assertEquals("WFS", root.getAttribute("service"));
assertEquals("1.1.0", root.getAttribute("version"));
assertEquals("testHandle", root.getAttribute("handle"));
assertEquals("GML2", root.getAttribute("outputFormat"));
assertEquals("3", root.getAttribute("traverseXlinkDepth"));
assertEquals("2", root.getAttribute("traverseXlinkExpiry"));
Element gmlObjectId = getElementByQName(root, OGC.GmlObjectId);
assertNotNull(gmlObjectId);
assertEquals("gmlid.1", gmlObjectId.getAttributeNS(GML.NAMESPACE, GML.id.getLocalPart()));
}