### Question:
ProcessRetrieveRequest { public static ProcessRetrieveResponse checkRequestParameter( HttpServletRequest request, ServletContext context) { ProcessRetrieveResponse response = new ProcessRetrieveResponse(context); Integer numItems = checkNumItems(request, response); String term = checkTerm(request, response); if (term == null) { return response; } SuggestTree index = checkIndexName(request, response, context); if (index == null) { response.addError(RetrieveStatusCodes.NO_INDEX_AVAILABLE); return response; } retrieveSuggestions(request, response, index, term, numItems); return response; }  static ProcessRetrieveResponse checkRequestParameter(
			HttpServletRequest request, ServletContext context);  }### Answer:
@SuppressWarnings("unchecked") @Test public void testCheckRequestParameter() throws ServletException { HttpServletRequest request = this.initializeTest(); JSONObject jsonResponse = this.testRequest(request, "Me", "7", "generalIndex"); ArrayList<HashMap<String, String>> suggestionList = (ArrayList<HashMap<String, String>>) jsonResponse .get("suggestionList"); assertTrue(suggestionList.size() == 7); }