@Test
public void testCommittedVersion() throws Exception {

    try (FDBRecordContext context = openContext()) {
        final long readVersion = context.getReadVersion();
        openSimpleRecordStore(context);
        TestRecords1Proto.MySimpleRecord.Builder recBuilder = TestRecords1Proto.MySimpleRecord.newBuilder();
        recBuilder.setRecNo(1);
        recordStore.saveRecord(recBuilder.build());
        commit(context);
        assertThat(context.getCommittedVersion(), greaterThan(readVersion));
    }
}