i see...let me recap my logic, please help to review:

To me, the following 3 kind of message will have "error" in the classlist:

Outgoing SMS - send error
Outgoing MMS - send error
Incoming MMS Notification - download error

And indeed only the first two need the "Resend" option, however, i don't know how to distinguish outgoing message from incoming message....Do we have a attribute that specifically use to identify outgoing message? I know we have one in the classlist, but don't know how to add that during the unit test...

Also i think we need to have two unit tests for this resend option:

1. Test that when the classlist contain both outgoing and error, the resend option will appear
2. Test that when the classlist contain only error, the resend option won't appear

Still i am not sure about the unit test framework, is that too much or redundant to have two test cases?

Really appreciate your help on this one, I will modify again accordingly once I heard from you.