anchor.diff:  
   ==== Generate Markup during an unit test with springfox-staticdocs
   
  -Spring's MVC Test framework can also be used to make a request to a https://github.com/springfox/springfox[springfox] Swagger endpoint during an unit test. A custom ResultHandler `Swagger2MarkupResultHandler` is used to automatically convert the Swagger JSON response into an AsciiDoc document. The custom ResultHandler is part of `springfox-staticdocs` now. That way you also verify that your Swagger endpoint is working.
  +Spring's MVC Test framework can also be used to make a request to a https://github.com/springfox/springfox[springfox] Swagger endpoint during an unit test. A custom ResultHandler `Swagger2MarkupResultHandler` is used to automatically convert the Swagger JSON response into an AsciiDoc document. The custom ResultHandler is part of `springfox-staticdocs`. That way you also verify that your Swagger endpoint is working.
   
   [source,java]
   ----
  
positive.code: 
      @Test
      public void convertRemoteSwaggerToMarkdown() {
          //Remote Swagger source
          //Markdown
          Swagger2MarkupConverter.from("http://localhost:8080/v2/api-docs")
              .withMarkupLanguage(MarkupLanguage.MARKDOWN).build()
              .intoFolder("src/docs/asciidoc/generated");
              
          //Then
          String[] files = new File("src/docs/asciidoc/generated").list();
          assertThat(files).hasSize(3)
              .containsAll(Arrays.asList("definitions.md", "overview.md", "paths.md"));
  
negative.code: 
      @Test
      public void convertRemoteSwaggerToAsciiDoc() {
          // Remote Swagger source
          // Default is AsciiDoc
          Swagger2MarkupConverter.from("http://localhost:8080/v2/api-docs").build()
              .intoFolder("src/docs/asciidoc/generated");
              
          // Then validate that three AsciiDoc files have been created
          String[] files = new File("src/docs/asciidoc/generated").list();
          assertThat(files).hasSize(3)
              .containsAll(Arrays.asList("definitions.adoc", "overview.adoc", "paths.adoc"));
  