### Question:
AbstractApiDocService { protected Pair<String, String> getEndPointPairs(String endPoint, String serviceId, RoutedService route) { if (route == null) { return Pair.of(endPoint, endPoint); } else { String updatedShortEndPoint = getShortEndPoint(route.getServiceUrl(), endPoint); String updatedLongEndPoint = OpenApiUtil.SEPARATOR + route.getGatewayUrl() + OpenApiUtil.SEPARATOR + serviceId + updatedShortEndPoint; return Pair.of(updatedShortEndPoint, updatedLongEndPoint); } }  abstract String transformApiDoc(String serviceId, ApiDocInfo apiDocInfo);  }### Answer:
@Test public void shouldGetEndpointPairs() { RoutedService routedService = new RoutedService("api_v1", "api/v1", "/apicatalog/api/v1"); Pair endpointPairs = abstractApiDocService.getEndPointPairs("/apicatalog", "apicatalog", routedService); ImmutablePair expectedPairs = new ImmutablePair("/apicatalog", "/api/v1/apicatalog/apicatalog"); assertEquals(expectedPairs, endpointPairs); }