@Test public void shouldReturnRootElementIfTheTreeContainsTFiveElements() {

  BinaryNode<Integer> root = new BinaryNode<Integer>(2);
  BinaryNode<Integer> n1 = new BinaryNode<Integer>(1);
  BinaryNode<Integer> n3 = new BinaryNode<Integer>(3);
  BinaryNode<Integer> n4 = new BinaryNode<Integer>(4);
  BinaryNode<Integer> n5 = new BinaryNode<Integer>(-1);
  root.setLeft(n1);
  root.setRight(n3);
  n3.setRight(n4);
  n1.setLeft(n5);
  double median = avlTreeMedian.find(root);
  assertEquals(2, median, DELTA);
}