PentaTreeNode extends AbstractTreeNode<D, N> { @Pure @Override public int getNotNullChildCount() { return this.notNullChildCount; } PentaTreeNode();  PentaTreeNode(Collection<D> data);  PentaTreeNode(D data);  PentaTreeNode(boolean useLinkedList);  PentaTreeNode(boolean useLinkedList, boolean copyDataCollection, List<D> data);  PentaTreeNode(boolean useLinkedList, D data); @Pure @Override Class<? extends Enum<?>> getPartitionEnumeration(); @Override @SuppressWarnings("checkstyle:magicnumber") void clear(); @Pure @Override @SuppressWarnings("checkstyle:magicnumber") int getChildCount(); @Pure @Override int getNotNullChildCount(); @Pure @Override @SuppressWarnings("checkstyle:magicnumber") N getChildAt(int index); @Pure @Override boolean isLeaf(); @Override boolean moveTo(N newParent, int index); @Override @SuppressWarnings("checkstyle:magicnumber") boolean setChildAt(int index, N newChild); @Override @SuppressWarnings("checkstyle:magicnumber") boolean removeChild(N child); @Pure @Override @SuppressWarnings("checkstyle:magicnumber") int indexOf(N child); @Override @SuppressWarnings("checkstyle:magicnumber") void getChildren(Object[] array); @Pure @Override int getMinHeight(); @Override @Pure int getMaxHeight();  }
@Test public void getNotNullChildCount() { assertEquals(2, this.root.getNotNullChildCount()); assertEquals(1, this.child1.getNotNullChildCount()); assertEquals(0, this.child2.getNotNullChildCount()); assertEquals(0, this.node.getNotNullChildCount()); }