InternalFSM { Date getConnectRetryTimerDueWhen() throws SchedulerException { return fireConnectRetryTimeExpired.getFiredWhen(); } InternalFSM(); Date getDelayOpenTimerDueWhen(); boolean isKeepaliveTimerRunning(); Date getKeepaliveTimerDueWhen(); void flagFSMError();  }
@Test public void testStartEventInPassiveModeConnectRetryTimerExpires() throws Exception { initializeFSMToActiveState("peer2"); conditionalSleep(fsm.getConnectRetryTimerDueWhen()); verify(callbacks, never()).fireDisconnectRemotePeer(argThat(anyChannelMatcher)); verify(callbacks).fireConnectRemotePeer(); assertMachineInConnectState(false); }