Validating Mailbox icon in testproject

Hi team,

Please guide me below scenario,

as per my scenario i have mail box icons for unread mails.once mail is opened then it will be gone.so i want to validate mailbox icon is dispalying unread mails or not.