} catch (InterruptedException e) {
throw new RuntimeException(e);
}
// check for gaps in the generated sequence numbers
qualified1s = context.select(SelectQuery.query(Qualified1.class, null));
assertEquals(100 * numThreads, qualified1s.size());
Collections.sort(qualified1s, new Comparator<Qualified1>() {
public int compare(Qualified1 left, Qualified1 right) {
Integer leftPk = Cayenne.intPKForObject(left);