@Test
public void test27getPoliciesWithoutServiceAdmin() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	SearchFilter filter = new SearchFilter();
	List<RangerPolicy> policies = new ArrayList<RangerPolicy>();
	policies.add(rangerPolicy());
	filter.setParam(SearchFilter.POLICY_NAME, "policyName");
	filter.setParam(SearchFilter.SERVICE_NAME, "serviceName");
	Mockito.when(searchUtil.getSearchFilter(request, policyService.sortFields)).thenReturn(filter);
	Mockito.when(svcStore.getPolicies(filter)).thenReturn(policies);
	RangerPolicyList dbRangerPolicy = serviceREST.getPolicies(request);
	Assert.assertNotNull(dbRangerPolicy);
	/*here we are not setting service admin role,hence we will not get any policy without the service admin roles*/
	Assert.assertEquals(dbRangerPolicy.getListSize(), 0);
	Mockito.verify(searchUtil).getSearchFilter(request,
			policyService.sortFields);
}