void () { Entry dir = new DirectoryEntry("dir"); assertHasNoUnavailableContent(dir); dir.addChild(new FileEntry("f", c("abc"), -1, false)); assertHasNoUnavailableContent(dir); FileEntry f1 = new FileEntry("f1", new StoredContent(-1), -1, false); FileEntry f2 = new FileEntry("f2", new StoredContent(-1), -1, false); DirectoryEntry subDir = new DirectoryEntry("subDir"); dir.addChild(subDir); dir.addChild(f1); subDir.addChild(f2); assertHasUnavailableContent(dir, f2, f1); assertHasUnavailableContent(subDir, f2); }