### Question:
ModuleDependency { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ModuleDependency that = (ModuleDependency) o; return Objects.equals(this.source, that.source) && Objects.equals(this.dest, that.dest) && Objects.equals(this.count, that.count); } ModuleDependency(HWModule source, HWModule dest); int getCount(); void incrementCount(); @Override boolean equals(Object o); @Override int hashCode(); final HWModule source; final HWModule dest; }### Answer:
@Test public void equalsShouldWorkOnComparisonWithOtherType() { final ModuleDependency testee = new ModuleDependency(moduleA, moduleB); assertThat(testee.equals(new Object())).isFalse(); }