@Test
public void updateUnchanged() throws Exception {

    TestRecords1Proto.MySimpleRecord.Builder recBuilder = TestRecords1Proto.MySimpleRecord.newBuilder();
    recBuilder.setRecNo(1);
    try (FDBRecordContext context = openContext()) {
        openSimpleRecordStore(context);
        recBuilder.setStrValueIndexed("abc");
        recordStore.saveRecord(recBuilder.build());
        commit(context);
    }
    try (FDBRecordContext context = openContext()) {
        openSimpleRecordStore(context);
        recBuilder.setStrValueIndexed("xyz");
        recordStore.saveRecord(recBuilder.build());
        assertEquals(2, timer.getCount(DELETE_INDEX_ENTRY) + timer.getCount(SAVE_INDEX_ENTRY), "should update one index");
        commit(context);
    }
    try (FDBRecordContext context = openContext()) {
        openSimpleRecordStore(context);
        recordStore.saveRecord(recBuilder.build());
        assertEquals(0, timer.getCount(DELETE_INDEX_ENTRY) + timer.getCount(SAVE_INDEX_ENTRY), "should not update any index");
        commit(context);
    }
}