XdsbDocumentReference extends DocumentRequest { @Override public boolean equals(Object anObject) { XdsbDocumentReference xdsbDocumentReference = (XdsbDocumentReference) anObject; return documentUniqueId.equals(xdsbDocumentReference .getDocumentUniqueId()) && repositoryUniqueId.equals(xdsbDocumentReference .getRepositoryUniqueId()); } XdsbDocumentReference(String documentUniqueId,
			String repositoryUniqueId); @Override String toString(); @Override boolean equals(Object anObject);  }
@Test public void testEqualsObject() { XdsbDocumentReference anotherXdsbDocumentReference = new XdsbDocumentReference( "111", "222"); XdsbDocumentReference notEqualXdsbDocumentReference = new XdsbDocumentReference( "111", "aaa"); XdsbDocumentReference notEqualXdsbDocumentReference2 = new XdsbDocumentReference( "aaa", "222"); assertTrue(xdsbDocumentReference.equals(anotherXdsbDocumentReference)); assertTrue(anotherXdsbDocumentReference.equals(xdsbDocumentReference)); assertEquals(xdsbDocumentReference, anotherXdsbDocumentReference); assertEquals(anotherXdsbDocumentReference, xdsbDocumentReference); assertNotEquals(xdsbDocumentReference, notEqualXdsbDocumentReference); assertNotEquals(notEqualXdsbDocumentReference, xdsbDocumentReference); assertNotEquals(xdsbDocumentReference, notEqualXdsbDocumentReference2); assertNotEquals(notEqualXdsbDocumentReference2, xdsbDocumentReference); }