    @Test
    public void preparePath() {

        List<Server> servers = new ArrayList<>();
        servers.add(0, new Server().url("/apicatalog"));
        ApiDocPath<PathItem> apiDocPath = new ApiDocPath<>();
        OpenAPI openAPI = getDummyOpenApiObject(servers);

        String apiDocContent = convertOpenApiToJson(openAPI);
        RoutedService routedService = new RoutedService("api_v1", "api/v1", "/api/v1");
        RoutedService routedService2 = new RoutedService("ui_v1", "ui/v1", "/ui/v1");

        RoutedServices routedServices = new RoutedServices();
        routedServices.addRoutedService(routedService);
        routedServices.addRoutedService(routedService2);

        ApiInfo apiInfo = new ApiInfo("org.zowe.apicatalog", "api/v1", null, "https://localhost:10014/apicatalog/api-doc", "https://www.zowe.org");
        ApiDocInfo apiDocInfo = new ApiDocInfo(apiInfo, apiDocContent, routedServices);

        abstractApiDocService.preparePath(openAPI.getPaths(), apiDocPath, apiDocInfo, "/api/v1/api-doc", "/", "apicatalog");

        assertThat(apiDocPath.getLongPaths(), hasKey("/api/v1/apicatalog/api-doc/"));
        assertThat(apiDocPath.getShortPaths(), hasKey("/api-doc/"));
        assertTrue(apiDocPath.getPrefixes().contains("api/v1"));

    }