@Test
    void changing_tensor_type_of_tensor_field_requires_refeed() throws Exception {
        Instant.now();
        new Fixture(
                "field f1 type tensor(x[2]) { indexing: attribute }",
                "field f1 type tensor(x[3]) { indexing: attribute }")
                .assertValidation(newRefeedAction(ClusterSpec.Id.from("test"), ValidationId.fieldTypeChange, "Field 'f1' changed: data type: 'tensor(x[2])' -> 'tensor(x[3])'"));

        Instant.now();
        new Fixture(
                "field f1 type tensor(x[5]) { indexing: attribute }",
                "field f1 type tensor(x[3]) { indexing: attribute }")
                .assertValidation(newRefeedAction(ClusterSpec.Id.from("test"), ValidationId.fieldTypeChange, "Field 'f1' changed: data type: 'tensor(x[5])' -> 'tensor(x[3])'"));
    }
Test validation of changes between a current and next document type used in a document database.

@author toregge
config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/DocumentTypeChangeValidatorTest.java