assert Arrays.asList(1, 2, 3).equals(getAuditReader().getRevisions(PrimitiveTestEntity.class, id1));
}
@Test(dependsOnMethods = "initData")
public void testHistoryOfId1() {
PrimitiveTestEntity ver1 = new PrimitiveTestEntity(id1, 10, 0);
PrimitiveTestEntity ver2 = new PrimitiveTestEntity(id1, 20, 0);
assert getAuditReader().find(PrimitiveTestEntity.class, id1, 1).equals(ver1);
assert getAuditReader().find(PrimitiveTestEntity.class, id1, 2).equals(ver2);
assert getAuditReader().find(PrimitiveTestEntity.class, id1, 3) == null;
}