https://en.wikipedia.org/wiki/Fallacy_of_division
Fallacy of division.
The example on the page is:
- The second grade in Jefferson elementary eats a lot of ice cream
- Carlos is a second-grader in Jefferson elementary
- Therefore, Carlos eats a lot of ice cream
That's quite similar to the argument in your example
- lollis are popular among children
- jelly beans are a lolli
- therefore, jelly beans are popular among children
It's quite apparent that even if a generalization is true about a large category, you can't necessarily apply that generalization to individual elements of that category.