SimpleCallStateMachine { public List<CallState> getTransitions() { return Collections.unmodifiableList(this.callTransitions); } SimpleCallStateMachine(final String callId); long getTimeOfFirstMessage(); long getTimeOfLastMessage(); boolean isHandshakeCompleted(); boolean reTransmitsDetected(); void onEvent(final SipPacket msg); boolean isTerminated(); List<SipPacket> getMessages(); List<CallState> getTransitions(); CallState getCallState(); long getPostDialDelay(); long getDuration();  }
@Test public void testNoTraffic() throws Exception { final SimpleCallStateMachine fsm = new SimpleCallStateMachine("abcd-123"); assertThat(fsm.getTransitions().isEmpty(), is(true)); }