int amountToIncrement = generatorIncrement * 2;
OpenJPAEntityManager pm =(OpenJPAEntityManager)currentEntityManager();
//FIXME jthomas
//Sequence s = pm.getIdentitySequence(cls);
Sequence s =null;
s.setAllocate(amountToIncrement);
sql.clear();
for (int i = 0; i < amountToIncrement; i++) {
s.getIncrement();
assertEquals("SQL list should have been empty on sequence"
+ " fetch #" + i + " of #" + amountToIncrement
+ ", but contained: " + sql, 0, sql.size());
}
}