@Test
public void test22getServicePoliciesById() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	RangerPolicy rangerPolicy = rangerPolicy();
	SearchFilter filter = new SearchFilter();
	filter.setParam(SearchFilter.POLICY_NAME, "policyName");
	filter.setParam(SearchFilter.SERVICE_NAME, "serviceName");
	Mockito.when(
			searchUtil.getSearchFilter(request, policyService.sortFields))
			.thenReturn(filter);
	RangerPolicyList dbRangerPolicy = serviceREST.getServicePolicies(
			rangerPolicy.getId(), request);
	Assert.assertNotNull(dbRangerPolicy);
	Mockito.verify(searchUtil).getSearchFilter(request,
			policyService.sortFields);
	Mockito.verify(svcStore).getServicePolicies(Id, filter);
}