@Test
public void testWriteWhenFileIsNotInPackageShouldCreateNotFolderStructure() throws IOException {

    //GIVEN
    given(file.getParent()).willReturn(null);
    given(fileOutputStreamFactory.createFileOutputStream(file)).willReturn(fileOutputStream);
    //WHEN
    underTest.write(inputStream, FILE_NAME, EXCEPTION_MESSAGE);
    //THEN
    verify(fileFactory.createFile(Mockito.anyString()), never()).mkdirs();
}