void () { createDirectory(root, "dir"); createDirectory(root, "dir/subDir"); createFile(root, "dir/file", "one"); createFile(root, "dir/subDir/file1", "two"); createFile(root, "dir/subDir/file2", "three"); Change c = delete(root, "dir"); List<Content> cc = c.getContentsToPurge(); assertEquals(3, cc.size()); assertTrue(cc.contains(c("one"))); assertTrue(cc.contains(c("two"))); assertTrue(cc.contains(c("three"))); }