int size = snapshotUserIndex.getUpperBound(); for (int i = 0; i < size; i++) { assertThat(snapshotUserIndex.getKey(i), equalTo(userIndex.getKey(i))); size = snapshotItemIndex.getUpperBound(); for (int i = 0; i < size; i++) { assertThat(snapshotItemIndex.getKey(i), equalTo(itemIndex.getKey(i)));