}
@Test
public void encodeInsert() throws IOException, SAXException, TransformerException, XpathException{
WfsFactory wfsfac = WfsFactory.eINSTANCE;
FeatureFactory ff = CommonFactoryFinder.getFeatureFactory(null);
FeatureTypeFactory ftf = new FeatureTypeFactoryImpl();
AttributeDescriptor ad = ftf.createAttributeDescriptor(XSSchema.STRING_TYPE, new NameImpl("dummyAttribute"), 0, 1, true, null);
SimpleFeatureType ft = ftf.createSimpleFeatureType(new NameImpl("dummyFeatureType"), Collections.singletonList(ad), null, false, null, null, null);
SimpleFeature feature = ff.createSimpleFeature(new Object[] {"dummyValue"}, ft, "dummyId");
InsertElementType insert = wfsfac.createInsertElementType();
insert.getFeature().add(feature);
Encoder encoder = new Encoder(new WFSConfiguration());