@Test
public void testGetSecurityZoneByName() throws Exception {

	RangerSecurityZone securityZone = createRangerSecurityZone();
	Long securityZoneId = 2L;
	String securityZoneName = securityZone.getName();
	securityZone.setId(securityZoneId);
	when(securityZoneStore.getSecurityZoneByName(securityZoneName)).thenReturn(securityZone);
	RangerSecurityZone rangerSecurityZone = securityZoneREST.getSecurityZone(securityZoneName);
	assertEquals(securityZoneName, rangerSecurityZone.getName());
	verify(securityZoneStore, times(1)).getSecurityZoneByName(securityZoneName);
}