@Override
    public Iterator<QueryableEntry> iterator() {
        if (records == null) {
            return Collections.<QueryableEntry>emptyList().iterator();
        }
        return records.values().iterator();
    }
@Test
    public void testIterator_notEmpty() {
        QueryableEntry entry = entry(data());
        addEntry(entry);

        assertThat(result.iterator().hasNext()).isTrue();
        assertThat(result.iterator().next()).isEqualTo(entry);
    }