@Test public void testTruncatedFileReturnsDefault() throws IOException { assertTrue(FILE.createNewFile()); assertEquals(0, FILE.length()); BestEffortLongFile f = new BestEffortLongFile(FILE, 12345L); try { assertEquals(12345L, f.get()); } finally { f.close(); } }