@Test
public void hasParent() {

  final Node node = createTestNode("a");
  final Node parentNode = createTestNode("parent");
  node.addParent(parentNode);
  final boolean hasParent = node.hasParent();
  assertThat(hasParent).isTrue();
}