### Question:
InMemoryMap { public synchronized MemoryIterator skvIterator(SamplerConfigurationImpl iteratorSamplerConfig) { if (map == null) throw new NullPointerException(); if (deleted) throw new IllegalStateException("Can not obtain iterator after map deleted"); int mc = kvCount.get(); MemoryDataSource mds = new MemoryDataSource(iteratorSamplerConfig); SourceSwitchingIterator ssi = new SourceSwitchingIterator(mds); MemoryIterator mi = new MemoryIterator(new PartialMutationSkippingIterator(ssi, mc)); mi.setSSI(ssi); mi.setMDS(mds); activeIters.add(mi); return mi; } InMemoryMap(AccumuloConfiguration config, ServerContext serverContext, TableId tableId); String getMapType(); void mutate(List<Mutation> mutations, int numKVs); synchronized long estimatedSizeInBytes(); synchronized long getNumEntries(); synchronized MemoryIterator skvIterator(SamplerConfigurationImpl iteratorSamplerConfig); SortedKeyValueIterator<Key,Value> compactionIterator(); void delete(long waitTime); static final String TYPE_NATIVE_MAP_WRAPPER; static final String TYPE_DEFAULT_MAP; static final String TYPE_LOCALITY_GROUP_MAP; static final String TYPE_LOCALITY_GROUP_MAP_NATIVE; }### Answer:
@Test public void testEmptyNoSampleConfig() throws Exception { InMemoryMap imm = newInMemoryMap(false, tempFolder.newFolder().getAbsolutePath()); SamplerConfigurationImpl sampleConfig2 = new SamplerConfigurationImpl( RowSampler.class.getName(), Map.of("hasher", "murmur3_32", "modulus", "9")); MemoryIterator iter = imm.skvIterator(sampleConfig2); iter.seek(new Range(), LocalityGroupUtil.EMPTY_CF_SET, false); assertFalse(iter.hasTop()); }