TernaryTreeNode extends AbstractTreeNode<D, N> { @Pure @Override public final int getChildCount() { return 3; } TernaryTreeNode();  TernaryTreeNode(Collection<D> data);  TernaryTreeNode(D data);  TernaryTreeNode(boolean useLinkedList);  TernaryTreeNode(boolean useLinkedList, boolean copyDataCollection, List<D> data);  TernaryTreeNode(boolean useLinkedList, D data); @Pure @Override Class<? extends Enum<?>> getPartitionEnumeration(); @Override void clear(); @Pure @Override final int getChildCount(); @Pure @Override int getNotNullChildCount(); @Pure @Override final N getChildAt(int index); boolean setLeftChild(N newChild); @Pure final N getLeftChild(); boolean setMiddleChild(N newChild); @Pure final N getMiddleChild(); boolean setRightChild(N newChild); @Pure final N getRightChild(); @Pure @Override final boolean isLeaf(); @Override boolean moveTo(N newParent, int index); @Override final boolean setChildAt(int index, N newChild); @Override boolean removeChild(N child); @Pure @Override final int indexOf(N child); @Pure boolean hasChild(N potentialChild); @Override void getChildren(Object[] array); @Pure @Override int getMinHeight(); @Pure @Override int getMaxHeight();  }
@Test public void getChildCount() { assertEquals(3, this.root.getChildCount()); assertEquals(3, this.child1.getChildCount()); assertEquals(3, this.child2.getChildCount()); assertEquals(3, this.node.getChildCount()); }