### Question:
PathParameterExtractor { public Map<String, String> extractParameters(HttpServletRequest request) { return (Map) request.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE); }  Map<String, String> extractParameters(HttpServletRequest request);  }### Answer:
@Test void extractParameters() { when(httpServletRequest.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE)).thenReturn(new HashMap<>()); Map actualResult = pathParameterExtractor.extractParameters(httpServletRequest); assertNotNull(actualResult); }