### Question:
AbstractLightblueProxyServlet extends HttpServlet { protected final String servicePathForRequest(HttpServletRequest request) { String pathInfo = request.getPathInfo(); String queryString = request.getQueryString(); String path = ""; if (pathInfo != null) { path += pathInfo; } if (queryString != null) { path += "?" + queryString; } return path; } @Inject  AbstractLightblueProxyServlet(CloseableHttpClient httpClient,
                                         Instance<LightblueClientConfiguration> configuration);   }### Answer:
@Test public void shouldReturnTheServicePathForTheRequest() throws ServletException, IOException { CloseableHttpClient mockHttpClient = mock(CloseableHttpClient.class, Mockito.RETURNS_DEEP_STUBS); AbstractLightblueProxyServlet servlet = getTestServlet(mockHttpClient, null, null, null); HttpServletRequest stubRequest = new StubHttpServletRequest("http: "GET", "{test:0}", "application/json", "/get/*"); assertEquals("/the/thing?foo=bar", servlet.servicePathForRequest(stubRequest)); }