@Test
public void testWithSeparatedDefinitionsAndInterDocumentCrossReferences() {

    Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
            .withSeparatedDefinitions()
            .withInterDocumentCrossReferences()
            .build();
    Swagger2MarkupConverter.SwaggerContext context = createContext(config);
    context.setOutputPath(Paths.get("/tmp"));
    assertThat(new DefinitionDocumentResolverFromDefinition(context).apply("DefinitionName"))
            .isEqualTo("DefinitionName.adoc");
}