imap.put(String.valueOf(i), new SampleObjects.Employee("name" + i, i % 60, ((i & 1) == 1), Double.valueOf(i)));
}
imap.put(String.valueOf(10), new SampleObjects.Employee("name" + 10, 10, true, 44010.99D));
imap.put(String.valueOf(11), new SampleObjects.Employee("name" + 11, 11, true, 44032.01D));
start = Clock.currentTimeMillis();
entries = imap.entrySet(new SqlPredicate("active and salary between 44010.99 and 44032.01"));
long tookWithIndex = (Clock.currentTimeMillis() - start);
assertEquals(2, entries.size());
boolean foundFirst = false;
boolean foundLast = false;
for (Map.Entry entry : entries) {