/**
* @throws Exception
*/
@Test
public void updatePolicyAttributeDefinitionName() throws Exception {
PolicyAttributes attribute = new PolicyAttributes();
AttributeDefinition attributeDefinition = attribute.createAttributeDefinition(AttributeDefinition.TYPE_UNDEFINED, "NewAttributName", "typeMeta", -1, "categorylabel", "default value", AttributeDefinition.TYPE_UNDEFINED, 0, "", false, "Label", "Description", false, true, "");
createAttributeDefinition(attribute, attributeDefinition);
Assert.assertTrue("Should exist.", attribute.isDefinitionExists(attributeDefinition.getName()));
updateAttributeDefinition(attribute, attributeDefinition);
deletAttributeDefinitionName(attribute, attributeDefinition.getName());
Assert.assertFalse("Should not exist.", attribute.isDefinitionExists(attributeDefinition.getName()));
}