if(canceledDialog.isEmpty()) {
TestCase.assertFalse("retransmission flag should be false",responseReceivedEvent.isRetransmission());
TestCase.assertEquals( DialogState.CONFIRMED, dialog.getState() );
this.canceledDialog.add(dialog);
Request ackRequest = dialog.createAck(cseq
.getSeqNumber());
TestCase.assertNotNull( ackRequest.getHeader( MaxForwardsHeader.NAME ) );
// sleeping to see how it reacts with retrans
logger.info("Waiting to Send ACK");