### Question:
BinaryTree { public synchronized BinaryTree getEqual() { return equal; } BinaryTree(int value); synchronized int getValue(); synchronized BinaryTree getEqual(); synchronized void setEqual(BinaryTree equal); synchronized BinaryTree getNotEqual(); synchronized void setNotEqual(BinaryTree notEqual);  }### Answer:
@Test public void testGetEqual() { BinaryTree instance = new BinaryTree(15); BinaryTree equal = new BinaryTree(15); instance.setEqual(equal); instance.setNotEqual(new BinaryTree(10)); BinaryTree expResult = equal; BinaryTree result = instance.getEqual(); assertEquals(expResult, result); }