@Test(expectedExceptions = IOException.class)
public void testParseMultiPartFilesShouldThrowExceptionWhenFileCanNotBeParsed() throws IOException {

    //GIVEN
    given(fileItem.isFormField()).willReturn(false);
    given(fileItem.getInputStream()).willThrow(new IOException());
    uploadedFiles.add(fileItem);
    //WHEN
    underTest.parseMultiPartFiles(uploadedFiles);
    //THEN exception is thrown
}