@Test
public void shouldTrimNamespaceUriInConstructor() {

    name = new BasicName("  " + validNamespaceUri + "\t \t", validLocalName);
    assertThat(name.getNamespaceUri(), is(validNamespaceUri.trim()));
    name = new BasicName("  \t  \t", validLocalName);
    assertThat(name.getNamespaceUri(), is(""));
}