RemoveAllFolders implements BaseUpgradeTaskTo_1_2_0_PE { @Override public void run() { folderRepository.clear(); LOG.debug("All folders were removed but the home one."); }  @Override int getOrder(); @Override target getTarget(); @Override void run();  }
@Test public void shouldRemoveFolders() throws Exception { assertTrue(repository.size() > 0); task.run(); assertEquals(0, repository.size()); }