@Test
    void testAnnotationOutsideOfDocumentNew() throws IOException, ParseException {
        assertCorrectDeriving("annotationsoutsideofdocument");
    }
An annotation declared before document {} should work.
config-model/src/test/java/com/yahoo/schema/derived/AnnotationsTestCase.java