AssetQueryParameters { public String getFields() { return params.get(FIELDS_PARAM); } 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 testGetFields() throws Exception { UriInfo uriInfo = new DummyUriInfo("http: AssetQueryParameters params = AssetQueryParameters.create(uriInfo); assertEquals("field1,field2,field3", params.getFields()); params = AssetQueryParameters.create(ALL_PARAMS_URI); assertEquals("a,b,c", params.getFields()); }