@Test
public void changeStoreRecordVersions() {

    RecordMetaData metaData1 = RecordMetaData.build(TestRecords1Proto.getDescriptor());
    RecordMetaData metaData2 = RecordMetaData.build(metaData1.toProto().toBuilder()
            .setVersion(metaData1.getVersion() + 1)
            .setStoreRecordVersions(!metaData1.isStoreRecordVersions())
            .build()
    );
    assertNotEquals(metaData1.isStoreRecordVersions(), metaData2.isStoreRecordVersions());
    validator.validate(metaData1, metaData2);
    RecordMetaData metaData3 = RecordMetaData.build(metaData2.toProto().toBuilder()
            .setVersion(metaData2.getVersion() + 1)
            .setStoreRecordVersions(!metaData2.isStoreRecordVersions())
            .build()
    );
    assertNotEquals(metaData2.isStoreRecordVersions(), metaData3.isStoreRecordVersions());
    validator.validate(metaData2, metaData3);
}