private void putSearchRequestParams(
     final Map<String, Object> params, final SearchRequest searchRequest) {
   UrlBuilder savedSearchUrlBuilder = new UrlBuilder(false);
   savedSearchUrlBuilder.addParameter("mode", "hide");
   savedSearchUrlBuilder.addParameter("requestId", searchRequest.getId());
   params.put("savedSearchLinkUrlParams", savedSearchUrlBuilder.asUrlString());
   params.put("filterName", searchRequest.getName());
 }
 public static SearchRequest newSearchRequest(String name, long id) {
   SearchRequest searchRequest = mock(SearchRequest.class);
   when(searchRequest.getName()).thenReturn(name);
   when(searchRequest.getId()).thenReturn(id);
   return searchRequest;
 }