ObservationManagerFacade implements ObservationManager { @Override public void setUserData(String userData) throws RepositoryException { throw new ListenerReadOnlyException(); } ObservationManagerFacade(final @NotNull ObservationManager delegate); @Override EventListenerIterator getRegisteredEventListeners(); @Override EventJournal getEventJournal(); @Override EventJournal getEventJournal(int eventTypes, String absPath, boolean isDeep,
                                        String[] uuid, String[] nodeTypeName); @Override void setUserData(String userData); @Override void addEventListener(EventListener listener, int eventTypes, String absPath,
                                 boolean isDeep, String[] uuid, String[] nodeTypeName,
                                 boolean noLocal); @Override void removeEventListener(EventListener listener);  }
@Test(expected = ListenerReadOnlyException.class) public void testROSetUserData() throws Exception { ObservationManagerFacade facade = getFacade(mock(ObservationManager.class)); facade.setUserData(""); }