Thread.sleep(3500);
//now run the processor
UpdateProcessor up = new UpdateProcessor(om);
up.process(9999L);
//But is should be present in the correct index
Criteria criteria = new Criteria();
SortedMap<String,Object> values = Maps.newTreeMap();
values.put("foreignid", Long.valueOf(77));