### Question:
LedgerEntriesImpl implements LedgerEntries { @Override public Iterator<LedgerEntry> iterator() { checkNotNull(entries, "entries has been recycled"); return entries.iterator(); } private  LedgerEntriesImpl(Recycler.Handle<LedgerEntriesImpl> recyclerHandle); static LedgerEntriesImpl create(List<LedgerEntry> entries); @Override LedgerEntry getEntry(long entryId); @Override Iterator<LedgerEntry> iterator(); @Override void close();  }### Answer:
@Test public void testIterator() { Iterator<LedgerEntry> entryIterator = ledgerEntriesImpl.iterator(); entryIterator.forEachRemaining(ledgerEntry -> assertEquals(1, ledgerEntry.getEntryBuffer().refCnt())); }