protected void assertTagEquals(Tag expected, Tag source,
final List<String> ignoreAttr,
final List<String> ignoreTag) {
if (!expected.getName().equals(source.getName())) {
throw new ComparisonFailure("Tags not equal: ",
expected.getName().toString(),
source.getName().toString());
}
assertAttributesEquals(expected.getName(),
expected.getAttributes(), source.getAttributes(), ignoreAttr);
assertAttributesEquals(expected.getName(),
source.getAttributes(), expected.getAttributes(), ignoreAttr);
if (!StringUtils.isEmpty(expected.getText())
&& !expected.getText().equals(source.getText())) {
throw new ComparisonFailure("Text not equal: ",
expected.getText().toString(),
source.getText().toString());
}
if (!expected.getTags().isEmpty()) {