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

    String prefix = "bar";
    assertThatNamespacePrefixIsNotRegistered(prefix);
    registry.unregisterNamespace(prefix);
}