CreateStoredQueryType csq = (CreateStoredQueryType) parse();
assertNotNull(csq);
assertEquals(1, csq.getStoredQueryDefinition().size());
StoredQueryDescriptionType sqd = csq.getStoredQueryDefinition().get(0);
assertEquals("Features In Polygon", sqd.getTitle().get(0).getValue());
assertEquals(1, sqd.getParameter().size());
ParameterExpressionType pe = sqd.getParameter().get(0);
assertEquals("AreaOfInterest", pe.getName());
assertEquals(GML.Polygon, pe.getType());
assertEquals(1, sqd.getQueryExpressionText().size());
QueryExpressionTextType qet = sqd.getQueryExpressionText().get(0);
assertEquals("urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression", qet.getLanguage());
assertFalse(qet.isIsPrivate());
assertEquals(3, qet.getReturnFeatureTypes().size());
assertNotNull(qet.getValue());
assertTrue(qet.getValue().contains("wfs:Query"));