@Override public void close() { while (!regs.isEmpty()) { final FinalizablePhantomReference<?> ref = regs.get(0); ref.finalizeReferent(); } cache.invalidateAll(); queue.close(); }
@After public void tearDown() { queue.close(); }