### Question:
BasicName implements Name { public int compareTo( Name that ) { if (that == this) return 0; int diff = this.getLocalName().compareTo(that.getLocalName()); if (diff != 0) return diff; diff = this.getNamespaceUri().compareTo(that.getNamespaceUri()); return diff; } 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( expected = NullPointerException.class ) public void shouldNotSupportNullInCompareTo() { name.compareTo(null); }