Iterator it = goodTraceOrders.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry) it.next();
Long position = (Long) pairs.getKey();
AsyncTrace trace = AsyncTrace.find("byPosition", position).first();
assertNotNull(trace);
assertEquals(pairs.getValue(), trace.content);
}
}