/**
* Tests if {@link javax.jcr.observation.ObservationManager#getRegisteredEventListeners()}
* returns the correct listeners after an remove event listener.
*/
public void testRemoveEventListener() throws RepositoryException {
EventListener listener1 = new EventResult(log);
EventListener listener2 = new EventResult(log);
addEventListener(listener1);
addEventListener(listener2);
EventListener[] listeners = toArray(obsMgr.getRegisteredEventListeners());
assertEquals("Wrong number of event listeners.", 2, listeners.length);