### Question:
BasicName implements Name { @Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof Name) { Name that = (Name)obj; if (!this.getLocalName().equals(that.getLocalName())) return false; if (!this.getNamespaceUri().equals(that.getNamespaceUri())) return false; return true; } return false; } BasicName( String namespaceUri,
                      String localName ); String getLocalName(); String getNamespaceUri(); String getString(); String getString( TextEncoder encoder ); String getString( NamespaceRegistry namespaceRegistry ); String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder ); String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder,
                             TextEncoder delimiterEncoder ); int compareTo( Name that ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }### Answer:
@Test public void shouldSupportNullInEquals() { assertThat(name.equals(null), is(false)); }