AttributeMap map = new AttributeMap();
if (!map.equals(AttributeMap.EMPTY_ATTRIBUTE_MAP)) {
errln("Default-constructed map is not equal to empty map.");
}
map = map.addAttribute(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
Object otherMap = new AttributeMap(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
if (!map.equals(otherMap)) {
errln("Maps are inconsistent after map.add");
}