public void encodeDelete() throws IOException, SAXException, TransformerException, XpathException{
WfsFactory wfsfac = WfsFactory.eINSTANCE;
FilterFactory2 filterfac = CommonFactoryFinder.getFilterFactory2();
DeleteElementType delete = wfsfac.createDeleteElementType();
delete.setFilter(filterfac.id( filterfac.featureId("someid")));
Encoder encoder = new Encoder(new WFSConfiguration());
//System.out.println(encoder.encodeAsString(delete, WFS.Delete));
Document doc = encoder.encodeAsDOM(delete, WFS.Delete);
XMLAssert.assertXpathEvaluatesTo("someid", "//wfs:Delete/ogc:Filter/ogc:FeatureId/@fid", doc);