### Question:
QueueBuilder { public void clear() throws IOException { rewound = false; diskObjectCount = 0; list.clear(); if (raFile != null) { raFile.seek(0); raFile.setLength(0); } } QueueBuilder(int maxObjectsInMemory); void setListener(DiskQueueListener listener); void add(T obj); Iterable<T> reread(); int getDiskEntryCount(); void dispose(); void clear(); int size(); static final int BUFFER_SIZE; }### Answer:
@Test public void testMultipleCycles() throws IOException { for(int i=0; i<10; i++) { test(maxObjectsInMemory * 2*(10-i)); queue.clear(); System.gc(); } }