@Test
public void testGetMappedSearchParams(){

        ArrayList<Integer> statusList = new ArrayList<Integer>();
        statusList.add(RangerCommonEnums.STATUS_DISABLED);
        statusList.add(RangerCommonEnums.STATUS_ENABLED);
        SearchCriteria expectedSearchCriteria = new SearchCriteria();
        expectedSearchCriteria.addParam("status", statusList);
        expectedSearchCriteria.addParam("type", 3);
        SearchCriteria sc = new SearchCriteria();
        HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
        sc.addParam("status", null);
        sc.addParam("type", "hive");
        SearchCriteria actualSearchCriteria = serviceUtil.getMappedSearchParams(request, sc);
        Assert.assertNotNull(actualSearchCriteria);
        Assert.assertEquals(expectedSearchCriteria.getParamValue("type"), actualSearchCriteria.getParamValue("type"));
        Assert.assertEquals(expectedSearchCriteria.getParamValue("status"), actualSearchCriteria.getParamValue("status"));
}