@Test
public void fileFactoryValidFile_doesntExist() {

    when(file.isFile()).thenReturn(Boolean.FALSE);
    when(file.exists()).thenReturn(Boolean.FALSE);
    FileOrDirectoryTaskOutput instance = FileOrDirectoryTaskOutput.file(file);
    assertNotNull(instance);
}