@Test
public void test7getSecurityZonesForService() throws Exception {

	String serviceName = "hdfs_service";
	Map<String, RangerSecurityZone.RangerSecurityZoneService> retMap = null;
	SearchFilter filter = new SearchFilter();
	filter.setParam(SearchFilter.ZONE_NAME, "sz1");
	filter.setParam(SearchFilter.SERVICE_NAME, serviceName);
	List<RangerSecurityZone> ret = new ArrayList<>();
	List<XXSecurityZone> xxSecurityZones = new ArrayList<XXSecurityZone>();
	XXSecurityZone xxSecurityZone = new XXSecurityZone();
	xxSecurityZone.setId(2L);
	xxSecurityZone.setName("sz1");
	xxSecurityZones.add(xxSecurityZone);
	RangerSecurityZone rangerSecurityZone = new RangerSecurityZone();
	rangerSecurityZone.setId(3L);
	ret.add(rangerSecurityZone);
/		List<RangerSecurityZone> copy = new ArrayList<>(ret);
	XXSecurityZoneDao xXSecurityZoneDao = Mockito.mock(XXSecurityZoneDao.class);
	Mockito.when(daoManager.getXXSecurityZoneDao()).thenReturn(xXSecurityZoneDao);
	Mockito.when(xXSecurityZoneDao.getAll()).thenReturn(xxSecurityZones);
	Mockito.when(securityZoneService.read(xxSecurityZone.getId())).thenReturn(rangerSecurityZone);
/		Mockito.doNothing().when(predicateUtil).applyFilter(copy, filter);
	retMap = new HashMap<>();
	retMap.put(rangerSecurityZone.getName(), rangerSecurityZone.getServices().get(serviceName));
	securityZoneDBStore.getSecurityZonesForService(serviceName);
	Assert.assertNotNull(xxSecurityZone);
	Assert.assertNotNull(xxSecurityZones);
	Mockito.verify(daoManager).getXXSecurityZoneDao();
	Mockito.verify(securityZoneService).read(xxSecurityZone.getId());
}