### Question:
ExtendedTemporaryFolder extends ExternalResource { public File newFolder(String folder) throws IOException { return newFolder(new String[]{folder}); } ExtendedTemporaryFolder();  ExtendedTemporaryFolder(File parentFolder); void create(); File newFile(); File newFolder(String folder); File newFolder(String... folderNames); File getRoot(); void delete(); File newFolder(); File newFile(String fileName);  }### Answer:
@Test public void newFolderTest() throws IOException { for (int i = 0; i < 1000; i++) { File temporary = this.temporaryFolder.newFolder(); Assert.assertEquals(true, temporary.exists()); Assert.assertEquals(true, temporary.canWrite()); Assert.assertEquals(true, temporary.canRead()); } }