protected void traversePK(int rowDefId, List<?>... expectedIndexes) throws Exception {
Index pkIndex = getRowDef(rowDefId).getPKIndex();
try(CloseableTransaction txn = txnService().beginCloseableTransaction(session())) {
CollectingIndexKeyVisitor visitor = new CollectingIndexKeyVisitor();
store().traverse(session(), pkIndex, visitor, -1, 0);
assertEquals("traversed indexes", Arrays.asList(expectedIndexes), visitor.records());
txn.commit();
}
}