/** Make sure that the persistent storage file that doesn't exist is created. */ public void testNonExistentDirect() throws IOException { File f = createNonexistentDirect(); FileUsageCounter counter = new FileUsageCounter("test", new TimeBasedUsage(), createTarget(), f); assertEquals("The file mustn't exist at this point yet", false, f.exists()); counter.save(); assertEquals("The file exist at this point", true, f.exists()); f.delete(); assertEquals("The file must have been deleted by now", false, f.exists()); }