BinaryTree { public void setEqual(BinaryTree equal) { this.equal = equal; } BinaryTree(int value); int getValue(); BinaryTree getEqual(); void setEqual(BinaryTree equal); BinaryTree getNotEqual(); void setNotEqual(BinaryTree notEqual);  }
@Test public void testSetEqual() { 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); }