### Question:
ExtendedTemporaryFolder extends ExternalResource { public File newFile() throws IOException { return File.createTempFile("junit", null, getRoot()); } 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 newFileTest() throws IOException { for (int i = 0; i < 100; i++) { File temporary = this.temporaryFolder.newFile(new String(String.valueOf(i))); Assert.assertEquals(true, temporary.exists()); Assert.assertEquals(true, temporary.canWrite()); Assert.assertEquals(true, temporary.canRead()); } }