PolyNode { public List<PolyNode> getChilds() { return Collections.unmodifiableList(childs); }  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 unmodifiableListOfChildsTest() { junitExpectedException.expect(UnsupportedOperationException.class); PolyNode node = new PolyNode(); List<PolyNode> childs = node.getChilds(); childs.add(new PolyNode()); }