@Test
public void shouldEncodeColonInLocalNameAndNamespaceUriInResultFromGetStringWithoutNamespaceRegistry() {

    validLocalName = "some:name:with:colons";
    name = new BasicName(validNamespaceUri, validLocalName);
    String encodedNamespaceUri = encoder.encode(validNamespaceUri);
    String encodedLocalName = encoder.encode(validLocalName);
    String result = name.getString(encoder);
    assertThat(result, is("mode:" + encodedLocalName));
    assertThat(encodedNamespaceUri, is("http%3a%2f%2fwww.modeshape.org%2f1.0"));
    assertThat(encodedLocalName, is("some%3aname%3awith%3acolons"));
}