assertEquals(insertCommit.getTimestamp(), record.get("REV_CREATED"));
assertEquals("foo", record.get("TESTID"));
assertEquals(42, record.get("TESTINTEGER"));
// check revisions
SqlRowSet rowset =
jdbc().queryForRowSet("SELECT * FROM " + index.getHistoryTableName() + " ORDER BY REV_TIMESTAMP");
assertTrue(rowset.next());
assertEquals("foo", rowset.getString("TESTID"));
assertEquals(1, rowset.getInt("TESTINTEGER"));
assertEquals("INSERT", rowset.getString("REV_OPERATION"));
assertTrue(rowset.next());
assertEquals("foo", rowset.getString("TESTID"));
assertEquals(42, rowset.getInt("TESTINTEGER"));
assertEquals("UPDATE", rowset.getString("REV_OPERATION"));
assertFalse(rowset.next());
}