public void testWriteInStrictMode() throws Exception {
String hello = constructString(SWISS_GERMAN_HELLO);
Header header = new Header();
header.addField(Field.parse("Hello: " + hello));
Field field = header.getField("Hello");
assertNotNull(field);
assertEquals(hello, field.getBody());
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
header.writeTo(buffer, MessageUtils.STRICT_IGNORE);
String s = buffer.toString(MessageUtils.ASCII.name());