### Question:
WFSDataClearer { public void removeAll() throws DataElementLookupException { List<Long> elementIds = myCache.getElementIdsForTypeAsList(myLayer); removeIds(elementIds); } WFSDataClearer(MantleToolbox mantleToolbox, DataTypeInfo layer, QueryRegion queryArea); void removeAll(); void removeFeatures(TimeSpan span);  }### Answer:
@Test public void testRemoveAll() throws DataElementLookupException { EasyMockSupport support = new EasyMockSupport(); TimeSpan span1 = TimeSpan.get(System.currentTimeMillis() - 10000, System.currentTimeMillis() - 5000); TimeSpan span2 = TimeSpan.get(System.currentTimeMillis() - 3000, System.currentTimeMillis()); List<Long> allIds = New.list(Long.valueOf(0), Long.valueOf(1), Long.valueOf(2), Long.valueOf(3)); DataTypeInfo layer = createLayer(support); List<MapGeometrySupport> geometrySupports = New.list(); List<DataElement> elements = createElements(span1, span2, geometrySupports); DataElementCache cache = createCache(support, layer, allIds, null); DataElementLookupUtils lookupUtils = createLookup(support, layer, allIds, elements); DataTypeController typeController = createTypeController(support, layer, new long[] { 1, 3 }); MapGeometrySupportConverterRegistry converter = createConverter(support, geometrySupports); MantleToolbox mantle = createMantle(support, cache, lookupUtils, typeController, converter); QueryRegion queryArea = createRegion(support); support.replayAll(); WFSDataClearer clearer = new WFSDataClearer(mantle, layer, queryArea); clearer.removeAll(); support.verifyAll(); }