@Test
    void testDuplicateNameButDifferentDocumentTypes() throws ParseException {
        /*
         * Based on example from https://github.com/vespa-engine/vespa/issues/33088
         */
        var parent = """
                schema cities {
                    document cities {
                        field id type int {
                            indexing: summary | attribute
                        }
                    }
                }
                """;
        var child = """
                schema users {
                    document users {
                        field id type long {
                            indexing: summary | attribute
                        }
                        field city_ref type reference<cities> {
                            indexing: attribute
                        }
                    }
                    import field city_ref.id as city_id {}
                }
                """;
        var logger = new TestableDeployLogger();
        ApplicationBuilder.createFromStrings(logger, child, parent);
        assertEquals(0, logger.warnings.size());
    }
Tests that "name" is not allowed as name for a field.

And that duplicate names are not allowed. 

@author Lars Christian Jensen
config-model/src/test/java/com/yahoo/schema/NameFieldCheckTestCase.java