@Test
public void testValidatePropertyWebHDFSCom() throws Exception {

  PropertyValidator validator = new PropertyValidator();
  ViewInstanceDefinition definition = getViewInstanceDefinition();
  definition.getPropertyMap().put(PropertyValidator.WEBHDFS_URL, "hdfs://hostname.com:8020");
  assertTrue(validator.validateProperty(PropertyValidator.WEBHDFS_URL,
          definition, Validator.ValidationContext.PRE_CREATE).isValid());
  definition.getPropertyMap().put(PropertyValidator.WEBHDFS_URL, "webhdfs://hostname.com:50070");
  assertTrue(validator.validateProperty(PropertyValidator.WEBHDFS_URL,
          definition, Validator.ValidationContext.PRE_CREATE).isValid());
  definition.getPropertyMap().put(PropertyValidator.WEBHDFS_URL, "http://hostname.com:50070");
  assertFalse(validator.validateProperty(PropertyValidator.WEBHDFS_URL,
          definition, Validator.ValidationContext.PRE_CREATE).isValid());
}