@Test
public void getSafeHtml_Attribute() {

    AttributeCol52 originalColumn = new AttributeCol52();
    originalColumn.setReverseOrder(false);
    originalColumn.setUseRowNumber(false);
    originalColumn.setHideColumn(false);
    originalColumn.setDefaultValue(new DTCellValue52("def1"));
    // header & attribute name of an attribute column cannot be updated in the ui
    originalColumn.setAttribute(Attribute.SALIENCE.getAttributeName());
    originalColumn.setHeader(Attribute.SALIENCE.getAttributeName());
    AttributeCol52 newColumn = new AttributeCol52();
    newColumn.setReverseOrder(true);
    newColumn.setUseRowNumber(true);
    newColumn.setHideColumn(true);
    newColumn.setDefaultValue(new DTCellValue52("def2"));
    // header & attribute name of an attribute column cannot be updated in the ui
    newColumn.setAttribute(Attribute.SALIENCE.getAttributeName());
    newColumn.setHeader(Attribute.SALIENCE.getAttributeName());
    List<BaseColumnFieldDiff> diffs = originalColumn.diff(newColumn);
    SafeHtml result = helper.getSafeHtml(new UpdateColumnAuditLogEntry("mock user", originalColumn, newColumn, diffs));
    assertEquals(getAttributeHeaderRepre(newColumn.getAttribute()) + getDiffRepre(diffs), result.asString());
}