BasicName implements Name { @Override public String getLocalName() { return this.localName; } BasicName( String namespaceUri,
                      String localName ); @Override String getLocalName(); @Override String getNamespaceUri(); @Override String getString(); @Override String getString( TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder ); @Override String getString( NamespaceRegistry namespaceRegistry,
                             TextEncoder encoder,
                             TextEncoder delimiterEncoder ); @Override int compareTo( Name that ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }
@Test public void shouldAcceptLocalNameWithColon() { validLocalName = "some:name:with:colons"; name = new BasicName(validNamespaceUri, validLocalName); assertThat(name.getLocalName(), is(validLocalName)); }