@Test
public void testEquals() {

    File diffFile = mock(File.class);
    when(diffFile.isFile()).thenReturn(Boolean.TRUE);
    FileOrDirectoryTaskOutput eq1 = new FileOrDirectoryTaskOutput(file);
    FileOrDirectoryTaskOutput eq2 = new FileOrDirectoryTaskOutput(file);
    FileOrDirectoryTaskOutput eq3 = new FileOrDirectoryTaskOutput(file);
    FileOrDirectoryTaskOutput diff = new FileOrDirectoryTaskOutput(diffFile);
    TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff);
}