ObservationManagerFacade implements ObservationManager { @Override public void addEventListener(EventListener listener, int eventTypes, String absPath, boolean isDeep, String[] uuid, String[] nodeTypeName, boolean noLocal) 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 testROAddEventListener() throws Exception { ObservationManagerFacade facade = getFacade(mock(ObservationManager.class)); facade.addEventListener(null, 0, "", true, new String[0], new String[0], true); }