@@ -0,0 +1,1193 @@
+package org.searchisko.mbox.parser;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author Luk%C3%A1%C5%A1 Vl%C4%8Dek (lvlcek@redhat.com)%0A */%0A@RunWith(JUnit4.class)%0Apublic class MessageParserTest %7B%0A%0A    @Test%0A    public void subjectNormalizationShouldPass() %7B%0A%0A        assertEquals(%22Test subject%22, MessageParser.normalizeSubject(%22 %5B%5D %5Bx x%5D Re: Vor: Test RE: subject %22));%0A        assertEquals(%22Test subject%22, MessageParser.normalizeSubject(%22 Re: Fw: %5B%5D %5Bx x%5D Test RE: %5Bx%5D %5B%5D subject %22));%0A        assertEquals(%22Web Container Integration testing (WCI)%22, MessageParser.normalizeSubject(%22Re: %5Bgatein-dev%5D Web Container Integration testing (WCI)%22));%0A        assertEquals(%22Type Substitution doesn't work with Schema2Java Client a %5BRe: this should stay here%5D%22, MessageParser.normalizeSubject(%22%5Bjbossws-users%5D %5BJBossWS%5D - Re: %5Banother-tag%5D Fw: Type Substitution doesn't work with%5CtSchema2Java Client a %5BRe: this should stay here%5D%22));%0A        assertEquals(%22Multiple Assignment of a task in - jBPM4%22, MessageParser.normalizeSubject(%22%5Bjbpm-users%5D %5BjBPM Users%5D - %5BJBPM4%5D Multiple Assignment of a task in - jBPM4%22));%0A    %7D%0A%0A%7D%0A

add test of subject normalization