### Question:
FileList extends TransformedList { public void close() { if(storage != null) storage.close(); storage = null; writable = false; } FileList(File file, ByteCoder byteCoder); @Override boolean isWritable(); @Override void listChanged(ListEvent listChanges); void close(); @Override void dispose();  }### Answer:
@Test public void testCreate() throws IOException { File fibonacciFile = File.createTempFile("fibonacci", "j81"); fibonacciFile.deleteOnExit(); int expectedSecondLast = 0; int expectedLast = 0; int current = 0; for(int i = 0; i < 16; i++) { FileList fibonacci = new FileList(fibonacciFile, GlazedListsIO.serializableByteCoder()); if(fibonacci.size() < 2) { current = 1; } else { Integer secondLast = (Integer)fibonacci.get(fibonacci.size() - 2); assertEquals(expectedSecondLast, secondLast.intValue()); Integer last = (Integer)fibonacci.get(fibonacci.size() - 1); assertEquals(expectedLast, last.intValue()); current = secondLast.intValue() + last.intValue(); } fibonacci.add(new Integer(current)); fibonacci.close(); expectedSecondLast = expectedLast; expectedLast = current; } }