### Question:
WikiDocument { @Override public boolean equals(Object obj) { boolean equals = false; if (obj instanceof WikiDocument) { equals = ((WikiDocument) obj).getFullName().equals(getFullName()); } return equals; } WikiDocument(String fullName, XDOM xdom, WikiDocument parent); String getFullName(); XDOM getXdom(); WikiDocument getParent(); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void equalsTest() { WikiDocument documentA = new WikiDocument("document.a", null, null); WikiDocument documentA2 = new WikiDocument("document.a", null, null); assertEquals(documentA, documentA2); WikiDocument documentB = new WikiDocument("document.b", null, null); assertNotEquals(documentA, documentB); }