@Test( expected = UnsupportedOperationException.class )
public void shouldReturnImmutableListOfChildren() {

    parent = new PlanNode(Type.JOIN);
    new PlanNode(Type.ACCESS, parent);
    new PlanNode(Type.DUP_REMOVE, parent);
    new PlanNode(Type.GROUP, parent);
    parent.getChildren().clear();
}