### Question:
DeleteProjectFilesTask extends Task { private void deleteEmptyFolder(DomainFolder folder) { if (folder.isEmpty()) { try { folder.delete(); } catch (IOException e) { Msg.error(this, "Unexpected error deleting empty folder: " + folder.getName(), e); } } } DeleteProjectFilesTask(Set<DomainFolder> folders, Set<DomainFile> files, int fileCount,
			Component parent); @Override void run(TaskMonitor monitor); synchronized int getFileCount(); synchronized int getTotalDeleted();  }### Answer:
@Test public void testDeleteEmptyFolder() { createDeleteAction(CollectionUtils.asSet(empty), null); runAction(); confirmDelete("empty folder"); assertSummaryDialog(false); waitForTask(); assertNull(root.getFolder("empty")); }