JackrabbitWorkspaceFacade extends WorkspaceFacade<JackrabbitWorkspace, S> implements JackrabbitWorkspace { @Override public final void createWorkspace(final String workspaceName, final InputSource workspaceTemplate) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  JackrabbitWorkspaceFacade(final @NotNull JackrabbitWorkspace delegate,
                                     final @NotNull SessionFacade<S> session); @Override PrivilegeManager getPrivilegeManager(); @Override final void createWorkspace(final String workspaceName, final InputSource workspaceTemplate);  }
@Test(expected = ListenerReadOnlyException.class) public void testCreateWorkspace() throws Exception { JackrabbitWorkspaceFacade<JackrabbitSession> facade = getFacade(mock(JackrabbitWorkspace.class)); facade.createWorkspace("", (InputSource) null); }