@VisibleForTesting
    static void createDocumentationFile(
            String title,
            DocumentingRestEndpoint restEndpoint,
            RestAPIVersion apiVersion,
            Path outputFile)
            throws IOException {
        final OpenAPI openApi = createDocumentation(title, restEndpoint, apiVersion);
        Files.deleteIfExists(outputFile);
        Files.write(outputFile, Yaml.pretty(openApi).getBytes(StandardCharsets.UTF_8));
    }
@Test
    void testTitle(@TempDir Path tmpDir) throws Exception {
        final String title = "Funky title";

        final Path file = tmpDir.resolve("openapi_spec.yaml");
        OpenApiSpecGenerator.createDocumentationFile(
                title,
                DocumentingRestEndpoint.forRestHandlerSpecifications(
                        new TestEmptyMessageHeaders("/test/empty1", "This is a testing REST API.")),
                RuntimeRestAPIVersion.V0,
                file);
        final String actual = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);

        assertThat(actual).contains("title: " + title);
    }