### Question:
BasicName implements Name { public String getLocalName() { return this.localName; } 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 shouldAcceptLocalNameWithColon() { validLocalName = "some:name:with:colons"; name = new BasicName(validNamespaceUri, validLocalName); assertThat(name.getLocalName(), is(validLocalName)); }