JavaMail Mock2 - Open source mock classes for mockup JavaMail (useful especially for unittest). Supports IMAP IDLE.