MailChannels interview question

Write code to divide an email from Header and Body. And implement each unit test case for each header element.