### Question:
FileBuffer extends AbstractBuffer { public void delete() { bytes.delete(); } private  FileBuffer(FileBytes bytes, int offset, int initialCapacity, int maxCapacity); static FileBuffer allocate(File file); static FileBuffer allocate(File file, int initialCapacity); static FileBuffer allocate(File file, int initialCapacity, int maxCapacity); static FileBuffer allocate(File file, String mode, int initialCapacity, int maxCapacity); File file(); MappedBuffer map(int size); MappedBuffer map(int size, FileChannel.MapMode mode); MappedBuffer map(int offset, int size); MappedBuffer map(int offset, int size, FileChannel.MapMode mode); @Override FileBuffer duplicate(); FileBuffer duplicate(String mode); void delete();  }### Answer:
@Test public void testDelete() { File file = FileTesting.createFile(); FileBuffer buffer = FileBuffer.allocate(file, 16); buffer.writeLong(10).writeLong(11).flip(); assertEquals(10, buffer.readLong()); assertEquals(11, buffer.readLong()); assertTrue(Files.exists(file.toPath())); buffer.delete(); assertFalse(Files.exists(file.toPath())); }