@Test
public void testValidatePropertyWithLocalFileURI(){

  Map<String,String> propertyMap = new HashMap<String, String>();
  propertyMap.put(PropertyValidator.WEBHDFS_URL,"file:///");
  ViewInstanceDefinition instanceDefinition = getInstanceDef(propertyMap);
  ValidationResult result =  new PropertyValidator().validateProperty(PropertyValidator.WEBHDFS_URL,instanceDefinition,null);
  assertEquals(result.getClass(), PropertyValidator.InvalidPropertyValidationResult.class);
  assertEquals(result.isValid(),false);
  assertEquals(result.getDetail(),"Must be valid URL");
}