StandardSessionListenerSupport implements SessionListenerSupport { @Override public void fireSessionConnectionRefused() { SessionEvent event = new SessionEvent(this.wagon, SessionEvent.SESSION_CONNECTION_REFUSED); for (SessionListener sessionListener : this.sessionListeners) { sessionListener.sessionConnectionRefused(event); } } StandardSessionListenerSupport(Wagon wagon); @Override void addSessionListener(SessionListener sessionListener); @Override void removeSessionListener(SessionListener sessionListener); @Override boolean hasSessionListener(SessionListener sessionListener); @Override void fireSessionOpening(); @Override void fireSessionOpened(); @Override void fireSessionDisconnecting(); @Override void fireSessionDisconnected(); @Override void fireSessionConnectionRefused(); @Override void fireSessionLoggedIn(); @Override void fireSessionLoggedOff(); @Override void fireSessionError(Exception exception);  }
@Test public void fireSessionConnectionRefused() { this.sessionListenerSupport.fireSessionConnectionRefused(); verify(this.sessionListener).sessionConnectionRefused(Matchers.eq(new SessionEvent(this.wagon, SessionEvent.SESSION_CONNECTION_REFUSED))); }