@Test
public void testWithInterDocumentCrossReferencesAndPrefix() {

    Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
            .withInterDocumentCrossReferences("prefix_")
            .build();
    Swagger2MarkupConverter.SwaggerContext context = createContext(config);
    context.setOutputPath(Paths.get("/tmp"));
    String method = HttpMethod.GET.toString();
    String path = "/test";
    SwaggerPathOperation operation = new SwaggerPathOperation(method, path, path + " " + method.toLowerCase(),
            method + " " + path, new Operation());
    assertThat(new OperationDocumentNameResolver(context).apply(operation))
            .isEqualTo("paths.adoc");
}