### Question:
NamespaceRegistryFacade implements NamespaceRegistry { @Override public void unregisterNamespace(String prefix) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  NamespaceRegistryFacade(@NotNull NamespaceRegistry delegate); @Override String[] getPrefixes(); @Override String[] getURIs(); @Override String getURI(String prefix); @Override String getPrefix(String uri); @Override void registerNamespace(String prefix, String uri); @Override void unregisterNamespace(String prefix);  }### Answer:
@Test(expected = ListenerReadOnlyException.class) public void testROUnregisterNamespace() throws Exception { NamespaceRegistryFacade facade = getFacade(mock(NamespaceRegistry.class)); facade.unregisterNamespace(""); }