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

    //GIVEN
    given(fileInputStreamFactory.createFileInputStream(file)).willThrow(new FileNotFoundException());
    //WHEN
    underTest.indexFile(file);
    //THEN
}