@Test
public void shouldParseValidAttachmentHeader() throws MalformedInputException {

    // CHECKSTYLE.OFF: LineLength
    MultipartHeadersPart headers = multipartHeadersPartParser
            .parse("Content-Disposition: attachment; name=\"FIELDNAME\"; filename=\"FILE.PDF\"\nContent-type: application/pdf");
    // CHECKSTYLE.ON: LineLength
    assertThat(headers.getFileName(), is("FILE.PDF"));
    assertThat(headers.getName(), is("FIELDNAME"));
    assertThat(headers.getContentType(), is("application/pdf"));
}