@Test
public void test9updateSecurityZoneByUnknownId() throws Exception {

	RangerSecurityZone securityZoneToUpdate = new RangerSecurityZone();
	securityZoneToUpdate.setId(2L);
	XXSecurityZoneDao xXSecurityZoneDao = Mockito.mock(XXSecurityZoneDao.class);
	Mockito.when(daoManager.getXXSecurityZoneDao()).thenReturn(xXSecurityZoneDao);
	Mockito.when(xXSecurityZoneDao.findByZoneId(securityZoneToUpdate.getId())).thenReturn(null);
	Mockito.when(restErrorUtil.createRESTException(Mockito.anyString())).thenThrow(new WebApplicationException());
	thrown.expect(WebApplicationException.class);
	securityZoneDBStore.updateSecurityZoneById(securityZoneToUpdate);
	Mockito.verify(daoManager, times(1)).getXXSecurityZoneDao();
	Mockito.verify(xXSecurityZoneDao, times(1)).findByZoneId(securityZoneToUpdate.getId());
}