ParamParser { public static String getLookupName(Map<String, String> requestParams) { return requestParams.get(LOOKUP_NAME); } private  ParamParser(); static QueryParams buildQueryParams(Map<String, String> requestParams); static String getLookupName(Map<String, String> requestParams); static Long getId(Map<String, String> requestParams); static Boolean getIncludeBlob(Map<String, String> requestParams); static final String PAGE; static final String PAGE_SIZE; static final String SORT_BY; static final String ORDER_DIR; static final String LOOKUP_NAME; static final String ID; static final String INCLUDE_BLOB; }
@Test public void shouldGetLookupName() { Map<String, String> requestParams = new HashMap<>(); assertNull(ParamParser.getLookupName(requestParams)); requestParams.put("lookup", "findByName"); assertEquals("findByName", ParamParser.getLookupName(requestParams)); }