AssetQueryParameters { public String getSearchTerm() { String searchTerm = params.get(SEARCH_PARAM); if (searchTerm == null || searchTerm.isEmpty()) { return null; } else { return searchTerm; } } private  AssetQueryParameters(Map<String, String> params); static AssetQueryParameters create(UriInfo uriInfo); Collection<AssetFilter> getFilters(); PaginationOptions getPagination(); String getSearchTerm(); String getFields(); SortOptions getSortOptions();  }
@Test public void testGetSearchTerm() throws Exception { UriInfo uriInfo = new DummyUriInfo("http: AssetQueryParameters params = AssetQueryParameters.create(uriInfo); assertEquals("TEST", params.getSearchTerm()); params = AssetQueryParameters.create(ALL_PARAMS_URI); assertEquals("wibble", params.getSearchTerm()); }