@Test( expected = NamespaceException.class )
public void shouldNotAllowRegisteringPrefixThatIsNotValidXmlNCName() throws Exception {

    registry.registerNamespace("1foot&in<door", "http://example.com");
}