### Question:
VersioningFileProvider extends AbstractFileProvider { @Override public void deletePage( final String page ) throws ProviderException { super.deletePage( page ); final File dir = findOldPageDir( page ); if( dir.exists() && dir.isDirectory() ) { final File[] files = dir.listFiles( new WikiFileFilter() ); for( int i = 0; i < files.length; i++ ) { files[ i ].delete(); } final File propfile = new File( dir, PROPERTYFILE ); if( propfile.exists() ) { propfile.delete(); } dir.delete(); } }  @Override void initialize( final Engine engine, final Properties properties ); @Override synchronized String getPageText( final String page, int version ); @Override synchronized void putPageText( final Page page, final String text ); @Override Page getPageInfo( final String page, final int version ); @Override boolean pageExists( final String pageName, final int version ); @Override List< Page > getVersionHistory( final String page ); @Override void deletePage( final String page ); @Override void deleteVersion( final String page, final int version ); @Override Collection< Page > getAllPages(); @Override String getProviderInfo(); @Override void movePage( final String from, final String to ); static final String PAGEDIR; static final String PROPERTYFILE; }### Answer:
@Test public void testDelete() throws Exception { engine.saveText( NAME1, "v1" ); engine.saveText( NAME1, "v2" ); engine.saveText( NAME1, "v3" ); final PageManager mgr = engine.getManager( PageManager.class ); final PageProvider provider = mgr.getProvider(); provider.deletePage( NAME1 ); final File f = new File( files, NAME1+AbstractFileProvider.FILE_EXT ); Assertions.assertFalse( f.exists(), "file exists" ); }