In reply to S.P.Rajkumar.V:
You are storing the Messages on the generation side. If the DUT gives you a Response you Can directly compare the corresponding Messages, thus avoiding to store all generated and actual messages. This is the common way you should follow.