@Test public void checkThatNewlyCreatedFileCanBeWrittenTo() throws Exception { String thisFilename = randomFilename(); FileHandler myFile = new FileHandler(thisFilename, true); myFile.write("This file can be written to."); myFile.close(); }