PolyNode { public int getChildCount() { return childs.size(); }  void addChild( PolyNode child ); int getChildCount(); List<PolyNode> getChilds(); List<Point.LongPoint> getContour(); EndType getEndType(); JoinType getJoinType(); PolyNode getNext(); PolyNode getParent(); Path getPolygon(); boolean isHole(); boolean isOpen(); void setEndType( EndType value ); void setJoinType( JoinType value ); void setOpen( boolean isOpen ); void setParent( PolyNode n );  }
@Test public void getChildCountTest() { PolyNode node = new PolyNode(); node.addChild(new PolyNode()); Assert.assertEquals(1, node.getChildCount()); }