// are any other allocations happening we can't assert on exact values.
// uncomment this check and the others below when we bring the local
// allocator in line with the prod allocator
// assertEquals(range.getEnd().getId(), pojo.getId() - 1);
assertTrue(range.getEnd().getId() < pojo.getId());
Sequence seq = pm.getSequence("jdo1b");
// assertEquals(pojo.getId() + 12, seq.nextValue());
assertTrue(pojo.getId() + 12 <= seq.nextValue());
// assertEquals(pojo.getId() + 13, seq.nextValue());
assertTrue(pojo.getId() + 13 <= seq.nextValue());
assertEquals(Utils.newArrayList("jdothat2", "jdothat2"), sequenceNames);
assertEquals(Utils.newArrayList(12L, 12L), sequenceBatchSizes);
sequenceNames.clear();
sequenceBatchSizes.clear();
// getting a sequence always gets you a fresh batch
seq = pm.getSequence("jdo1b");
// assertEquals(pojo.getId() + 24, seq.nextValue());
assertTrue(pojo.getId() + 24 <= seq.nextValue());
// assertEquals(pojo.getId() + 25, seq.nextValue());
assertTrue(pojo.getId() + 25 <= seq.nextValue());
assertEquals(Utils.newArrayList("jdothat2"), sequenceNames);
assertEquals(Utils.newArrayList(12L), sequenceBatchSizes);
}