@Test
       public void testValidateSecurityZoneWitoutRangerServiceForCreateThrowsError() throws Exception{

               RangerSecurityZone suppliedSecurityZone = getRangerSecurityZone();
	
	Mockito.when(_store.getSecurityZone("MyZone")).thenReturn(null);
	Mockito.when(_store.getServiceByName("hdfsSvc")).thenReturn(null);
	
	try {
		rangerSecurityZoneValidator.validate(suppliedSecurityZone,
				RangerValidator.Action.CREATE);
	} catch (Exception ex) {
		Assert.assertEquals(
				ex.getMessage(),
				"(0) Validation failure: error code[3040], reason[Invalid service [hdfsSvc]], field[security zone resource service-name], subfield[null], type[] ");
	}
}