### Question:
PagesDir extends VirtualContainer { public PageDir newPageDir() { String name = PageDir.PageContainerPrefix + maxPageIndex; maxPageIndex++; return this.obtainContainer(name, PageDir::new); } PagesDir(Path fullDir); PageDir newPageDir(); PageDir getByIndex(int index); PageDir getPageDir(String containerName);  }### Answer:
@Test void collect() throws IOException { Path p = Paths.get("target/Pages"); PagesDir ps = new PagesDir(p); ps.newPageDir().setContent(PageContent.page()); ps.flush(); System.out.println(p.toAbsolutePath().toString()); }