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

    registry.registerNamespace("foo:", "http://example.com");
}