@Test public void shouldWorkWithALittleBinaryTreeUsingQueue() {

  BinaryNode<Integer> root = new BinaryNode<Integer>(0);
  BinaryNode<Integer> n1 = new BinaryNode<Integer>(1);
  BinaryNode<Integer> n2 = new BinaryNode<Integer>(2);
  root.setLeft(n1);
  root.setRight(n2);
  List<BinaryNode> result = binaryTreeByLevel.getUsingQueue(root);
  List<BinaryNode<Integer>> expectedList = Arrays.asList(root, n1, n2);
  assertEquals(expectedList, result);
}