imap.addIndex("active", false);
for (int i = 0; i < 5000; i++) {
imap.put(String.valueOf(i), new SampleObjects.Employee("name" + i, i % 60, ((i & 1) == 1), Double.valueOf(i)));
}
start = Clock.currentTimeMillis();
entries = imap.entrySet(new SqlPredicate("active and age=23"));
long tookWithIndex = (Clock.currentTimeMillis() - start);
assertEquals(83, entries.size());
for (Map.Entry entry : entries) {
SampleObjects.Employee c = (SampleObjects.Employee) entry.getValue();
assertEquals(c.getAge(), 23);