FlatFileBufferLinkedList implements NodeStateEntryList { @Override public boolean isEmpty() { return size == 0; } FlatFileBufferLinkedList();  FlatFileBufferLinkedList(long memLimit); void add(@NotNull NodeStateEntry item); NodeStateEntry remove(); @Override Iterator<NodeStateEntry> iterator(); @Override int size(); @Override boolean isEmpty(); @Override long estimatedMemoryUsage(); @Override void close();  }
@Test public void isEmpty() { assertTrue("Empty list should be empty", list.isEmpty()); list.add(testNode("/")); assertFalse("Non-empty list should be non-empty", list.isEmpty()); list.remove(); assertTrue("Empty list due to removal should be empty", list.isEmpty()); }