super(WFS.GetFeatureType, GetFeatureType.class, Binding.OVERRIDE);
}
@SuppressWarnings("unchecked")
public void testEncode() throws Exception {
GetFeatureType getFeature = factory.createGetFeatureType();
getFeature.setHandle("handle");
getFeature.setMaxFeatures(BigInteger.valueOf(10));
getFeature.getQuery().add(factory.createQueryType());
getFeature.getQuery().add(factory.createQueryType());
Document dom = encode(getFeature, WFS.GetFeature);
assertEquals("handle", dom.getDocumentElement().getAttribute("handle"));
assertEquals("10", dom.getDocumentElement().getAttribute("maxFeatures"));
assertEquals(2, getElementsByQName(dom, WFS.Query).getLength());