### Question:
AbstractApiDocService { protected String getShortEndPoint(String routeServiceUrl, String endPoint) { String shortEndPoint = endPoint; if (!routeServiceUrl.equals(OpenApiUtil.SEPARATOR)) { shortEndPoint = shortEndPoint.replaceFirst(routeServiceUrl, ""); } return shortEndPoint; }  abstract String transformApiDoc(String serviceId, ApiDocInfo apiDocInfo);  }### Answer:
@Test public void shouldGetShortEndpoint() { String shortEndpoint = abstractApiDocService.getShortEndPoint("/apicatalog/api/v1", "/apicatalog"); assertEquals("/apicatalog", shortEndpoint); }