other = new UnknownTag("author");
assertFalse(tag.equals(other));
}
public void testHashCode() {
Tag other = new UnknownTag(new String(tagName));
assertNotSame(tag.toString(), other.toString());
assertEquals(tag.toString(), other.toString());
assertEquals(tagName.hashCode(), tag.hashCode());
assertEquals(other.hashCode(), tag.hashCode());
other = new UnknownTag("author");
assertFalse(other.hashCode() == tag.hashCode());
}