@Test
public void testIsViewValidationEnabled() throws Exception {

  final Properties ambariProperties = new Properties();
  Configuration configuration = new Configuration(ambariProperties);
  Assert.assertFalse(configuration.isViewValidationEnabled());
  ambariProperties.setProperty(Configuration.VIEWS_VALIDATE.getKey(), "false");
  configuration = new Configuration(ambariProperties);
  Assert.assertFalse(configuration.isViewValidationEnabled());
  ambariProperties.setProperty(Configuration.VIEWS_VALIDATE.getKey(), "true");
  configuration = new Configuration(ambariProperties);
  Assert.assertTrue(configuration.isViewValidationEnabled());
}