Node { boolean hasParent() { return !this.parents.isEmpty(); } Node(final String name, final NodeProcessor nodeProcessor, final Dag dag); @Override String toString();  }
@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(); }
@Test public void hasParentNegative() { final Node node = createTestNode("a"); final boolean hasParent = node.hasParent(); assertThat(hasParent).isFalse(); }