@Test
public void test34countServices() throws Exception {

	HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
	PList<RangerService> ret  = Mockito.mock(PList.class);
	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);
	Mockito.when(svcStore.getPaginatedServices(filter)).thenReturn(ret);
	Long data = serviceREST.countServices(request);
	Assert.assertNotNull(data);
	Mockito.verify(searchUtil).getSearchFilter(request,
			policyService.sortFields);
	Mockito.verify(svcStore).getPaginatedServices(filter);
}