### Question:
InMemoryDataSource implements DataSource { @Override public RecordIterator getRecords() { return new DefaultRecordIterator(records.iterator()); } InMemoryDataSource();  InMemoryDataSource(Collection<Record> records); @Override RecordIterator getRecords(); void clear(); void add(Record record); void setLogger(Logger logger); @Override void writeConfig(ConfigWriter cw);  }### Answer:
@Test public void testEmpty() { InMemoryDataSource src = new InMemoryDataSource(); RecordIterator it = src.getRecords(); assertFalse("empty data source contains records", it.hasNext()); }