@Test
public void testUpgradeBehaviorTag() throws JAXBException {

  // given
  String xml =
    "<property>\n" +
    "  <name>prop_name</name>\n" +
    "  <value>prop_val</value>\n" +
    "  <on-ambari-upgrade add=\"true\" update=\"true\" delete=\"true\"/>\n" +
    "</property>";
  // when
  PropertyInfo propertyInfo = propertyInfoFrom(xml);
  // then
  assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isAdd());
  assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isUpdate());
  assertTrue(propertyInfo.getPropertyAmbariUpgradeBehavior().isDelete());
}