### Question:
AbstractApiDocService { protected RoutedService getRoutedServiceByApiInfo(ApiDocInfo apiDocInfo, String endPoint) { ApiInfo apiInfo = apiDocInfo.getApiInfo(); if (apiInfo == null) { return null; } else { String gatewayUrl = apiInfo.getGatewayUrl(); RoutedService route = apiDocInfo.getRoutes().findServiceByGatewayUrl(gatewayUrl); if ((route != null) && endPoint.toLowerCase().startsWith(route.getServiceUrl())) { return route; } else { return null; } } }  abstract String transformApiDoc(String serviceId, ApiDocInfo apiDocInfo);  }### Answer:
@Test public void shouldReturnNull_whenGetRoutedServiceByApiInfo_IfApiInfoIsNull() { ApiDocInfo apiDocInfo = new ApiDocInfo(null, null, null); assertNull(abstractApiDocService.getRoutedServiceByApiInfo(apiDocInfo, "/")); }