@Test
public void testWriteWhenFileExistsShouldNotCreatNewFile() throws IOException {

    //GIVEN
    given(file.getParent()).willReturn(DIRECTORIES);
    given(fileOutputStreamFactory.createFileOutputStream(file)).willReturn(fileOutputStream);
    given(file.exists()).willReturn(true);
    //WHEN
    underTest.write(inputStream, FILE_NAME, EXCEPTION_MESSAGE);
    //THEN
    verify(file, Mockito.never()).createNewFile();
}