Thread.sleep(15000);
//assertions for the out sequence.
//assertions for the out sequence.
SequenceReport outgoingSequenceReport = SandeshaClient.getOutgoingSequenceReport(serviceClient);
assertEquals (outgoingSequenceReport.getCompletedMessages().size(),3);
assertTrue(outgoingSequenceReport.getCompletedMessages().contains(new Long(1)));
assertTrue(outgoingSequenceReport.getCompletedMessages().contains(new Long(2)));
assertTrue(outgoingSequenceReport.getCompletedMessages().contains(new Long(3)));
assertEquals(outgoingSequenceReport.getSequenceStatus(),SequenceReport.SEQUENCE_STATUS_TERMINATED);
assertEquals(outgoingSequenceReport.getSequenceDirection(),SequenceReport.SEQUENCE_DIRECTION_OUT);
SequenceReport incomingSequenceReport = SandeshaClient.getIncomingSequenceReport(offeredSequeiceId,configContext);
assertEquals (incomingSequenceReport.getCompletedMessages().size(),3);
assertTrue(incomingSequenceReport.getCompletedMessages().contains(new Long(1)));
assertTrue(incomingSequenceReport.getCompletedMessages().contains(new Long(2)));
assertTrue(incomingSequenceReport.getCompletedMessages().contains(new Long(3)));
assertEquals(incomingSequenceReport.getSequenceStatus(),SequenceReport.SEQUENCE_STATUS_TERMINATED);
assertEquals(incomingSequenceReport.getSequenceDirection(),SequenceReport.SEQUENCE_DIRECTION_IN);
assertTrue(callback1.isComplete());
assertNotNull (callback1.getResult(),"echo1");
assertTrue(callback2.isComplete());