@Test
public void getMailString(){

    Profile profileQuote = profileFromMailFromService.generate(
            "Nistor Andrei <coder.tux@gmail.com>"
    );
    Assert.assertEquals(profileQuote.getName(),"Nistor");
    Assert.assertEquals(profileQuote.getLastname(),"Andrei");
    Assert.assertEquals(profileQuote.getEmail(),"coder.tux@gmail.com");
    Profile withQuotes = profileFromMailFromService.generate(
            "\"Mario Bensi\" <nef@ipsquad.net>"
    );
    Assert.assertEquals(withQuotes.getName(),"Mario");
    Assert.assertEquals(withQuotes.getLastname(),"Bensi");
    Assert.assertEquals(withQuotes.getEmail(),"nef@ipsquad.net");
    Profile withUtf = profileFromMailFromService.generate(
            "Sebastian =?ISO-8859-1?Q?K=FCgler?= <sebas@kde.org>"
    );
    Assert.assertEquals(withUtf.getName(),"Sebastian");
    Assert.assertEquals(withUtf.getLastname(),"=?ISO-8859-1?Q?K=FCgler?=");
    Assert.assertEquals(withUtf.getEmail(),"sebas@kde.org");
    Profile withUtf2 = profileFromMailFromService.generate(
                                    "Jérémie Doucy<jdoucy@gmail.com>"
    );
    Assert.assertEquals(withUtf2.getName(),"Jérémie");
    Assert.assertEquals(withUtf2.getLastname(),"Doucy");
    Assert.assertEquals(withUtf2.getEmail(),"jdoucy@gmail.com");
    Profile withUtf3= profileFromMailFromService.generate(
                                    "Jérôme Leclaire<jerome.leclaire@orange.com>"
    );
    Assert.assertEquals(withUtf3.getName(),"Jérôme");
    Assert.assertEquals(withUtf3.getLastname(),"Leclaire");
    Assert.assertEquals(withUtf3.getEmail(),"jerome.leclaire@orange.com");
    Profile withDot = profileFromMailFromService.generate(
            "\"Aaron J. Seigo\" <aseigo@kde.org>"
    );
    Assert.assertEquals(withDot.getName(),"Aaron");
    Assert.assertEquals(withDot.getLastname(),"J. Seigo");
    Assert.assertEquals(withDot.getEmail(),"aseigo@kde.org");
    Profile withUTFNullResult = profileFromMailFromService.generate(
            "=?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com>"
    );
    Assert.assertNull(withUTFNullResult);
    Profile profileUnderscore = profileFromMailFromService.generate(
            "houda_dd<houda.doumi@gmail.com>"
    );
    Assert.assertEquals(profileUnderscore.getName(),"houda_dd");
    Assert.assertEquals(profileUnderscore.getLastname(),"");
    Assert.assertEquals(profileUnderscore.getEmail(),"houda.doumi@gmail.com");
}