@Test public void shouldReturnListWithJustOneNodeIfTreeContainsJustOneNode() {

  BinaryNode<Integer> root = new BinaryNode<Integer>(0);
  List<BinaryNode> result = toList.transform(root);
  assertEquals(1, result.size());
  assertTrue(result.contains(root));
}