DefaultFieldBuilder builder = new DefaultFieldBuilder(0);
builder.reset();
builder.append(line("raw : stuff;\r\n"));
builder.append(line(" more stuff;\r\n"));
builder.append(line(" a lot more stuff\r\n"));
ByteArrayBuffer buf = builder.getRaw();
assertNotNull(buf);
assertEquals("raw : stuff;\r\n more stuff;\r\n a lot more stuff\r\n",
new String(buf.toByteArray(), "US-ASCII"));
RawField field = builder.build();
assertNotNull(field);
assertEquals("raw", field.getName());
assertEquals("stuff; more stuff; a lot more stuff", field.getBody());
ByteSequence raw = field.getRaw();