sb.append(expected.getLast() + "\r\n");
expected.add("Subject: A folded subject\r\n Line 2\r\n\tLine 3");
sb.append(expected.getLast() + "\r\n");
MimeStreamParser parser = new MimeStreamParser();
parser.setContentHandler(new AbstractContentHandler() {
@Override
public void field(Field field) {
assertEquals(expected.removeFirst(), decode(field.getRaw()));
}
});