Testing getThreadPool inside sendEmail method