### Question:
IdentifiedTask { public boolean compareIgnoreId(IdentifiedTask another) { if (!getUrl().equals(another.getUrl())) return false; if (getUrl().equals(EMPTY_URL) || getParentFile().equals(EMPTY_FILE)) return false; if (getProvidedPathFile().equals(another.getProvidedPathFile())) return true; if (!getParentFile().equals(another.getParentFile())) return false; final String filename = getFilename(); final String anotherFilename = another.getFilename(); return anotherFilename != null && filename != null && anotherFilename.equals(filename); }  abstract int getId(); @NonNull abstract String getUrl(); @NonNull abstract File getParentFile(); @Nullable abstract String getFilename(); boolean compareIgnoreId(IdentifiedTask another); static final String EMPTY_URL; static final File EMPTY_FILE; }### Answer:
@Test public void compareIgnoreId_falseEmpty() { final IdentifiedTask task = DownloadTask.mockTaskForCompare(1); final IdentifiedTask anotherTask = DownloadTask.mockTaskForCompare(2); assertThat(task.compareIgnoreId(task)).isFalse(); assertThat(task.compareIgnoreId(anotherTask)).isFalse(); }