assertFalse(A.hasAttribute("foo"));
assertNull(A.getAttribute("foo"));
// Test null attributes checking.
assertFalse(graph.nullAttributesAreErrors());
graph.setNullAttributesAreErrors(true);
assertTrue(graph.nullAttributesAreErrors());
A.getAttribute("foo"); // NullAttributeException thrown here.
}