PolyNode { public PolyNode getNext() { if (!childs.isEmpty()) { return childs.get( 0 ); } else { return getNextSiblingUp(); } }  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 getNextNoChildsTest() { PolyNode node = new PolyNode(); Assert.assertNull(node.getNext()); }