@Test
public void testUpdateFeaturesAutoCommit() throws Exception {

    FilterFactory2 filterfac = CommonFactoryFinder.getFilterFactory2();
    
    ContentFeatureSource source = (ContentFeatureSource) dataStore.getFeatureSource(simpleTypeName1);
    
    WFSFeatureStore store = (WFSFeatureStore) source;
    
    Filter filter = filterfac.id(filterfac.featureId("poi.2"));
    
    store.modifyFeatures("NAME", "blah", filter);
    
    ContentFeatureCollection coll = store.getFeatures( new Query(simpleTypeName1.getLocalPart(), filter) );
    assertEquals(1, coll.size());
    SimpleFeature feature = coll.features().next();
    assertEquals("blah", feature.getAttribute("NAME"));
}