### Question:
HTTPUtilitiesImplementation implements HTTPUtilities { public HTTPResponse getLastResponse() throws GrinderException { final HTTPPluginThreadState threadState = (HTTPPluginThreadState)m_processContext.getPluginThreadListener(); return threadState.getLastResponse(); } HTTPUtilitiesImplementation(PluginProcessContext processContext); NVPair basicAuthorizationHeader(String userID, String password); HTTPResponse getLastResponse(); String valueFromLocationURI(final String tokenName); String valueFromBodyInput(final String tokenName); String valueFromBodyInput(String tokenName, String afterText); List<String> valuesFromBodyInput(final String tokenName); List<String> valuesFromBodyInput(String tokenName, String afterText); String valueFromHiddenInput(final String tokenName); String valueFromHiddenInput(String tokenName, String afterText); List<String> valuesFromHiddenInput(final String tokenName); List<String> valuesFromHiddenInput(String tokenName, String afterText); String valueFromBodyURI(final String tokenName); String valueFromBodyURI(final String tokenName, String afterText); List<String> valuesFromBodyURI(final String tokenName); List<String> valuesFromBodyURI(final String tokenName,
                                        String afterText);  }### Answer:
@Test public void testGetLastResponse() throws Exception { final HTTPUtilities httpUtilities = new HTTPUtilitiesImplementation(m_pluginProcessContext); assertEquals(null, httpUtilities.getLastResponse()); final HTTPRequestHandler handler = new HTTPRequestHandler(); handler.start(); final HTTPRequest request = new HTTPRequest(); final HTTPResponse httpResponse = request.GET(handler.getURL()); assertSame(httpResponse, httpUtilities.getLastResponse()); handler.shutdown(); }