@Test
public void test32getServicePolicies() throws Exception {

	SearchFilter filter = new SearchFilter();
	filter.setParam(SearchFilter.POLICY_NAME, "policyName");
	filter.setParam(SearchFilter.SERVICE_NAME, "serviceName");
	XXService xService = xService();
	XXServiceDao xServiceDao = Mockito.mock(XXServiceDao.class);
	Mockito.when(daoManager.getXXService()).thenReturn(xServiceDao);
	Mockito.when(xServiceDao.getById(Id)).thenReturn(xService);
	thrown.expect(Exception.class);
	List<RangerPolicy> dbRangerPolicy = serviceDBStore.getServicePolicies(
			Id, filter);
       Assert.assertFalse(dbRangerPolicy.isEmpty());
	Mockito.verify(daoManager).getXXService();
}