There seem to be a lot of removed comments here.
The jelly bean test was a tactic that was used to prevent Black people from voting during the Jim Crow era. Due to its overtly arbitrary and hostile nature, there is not a lot of documentation regarding the actual test itself. However, it has passed into folklore and was once mentioned by President Obama. What is important to point out is that it was part of a rather long campaign regarding disenfranchisement and the restriction of voting and civil rights. The poll tax was another method where citizens in some states had to pay a fee to vote in a national election. This barrier was brought to an end in 1964 by the 24th Amendment to the Constitution.
The jelly bean test pales in comparison to widespread use of "literacy tests" in voting. This idea was promulgated on the idea that citizens needed to know how to read in order to vote. Here is an actual literacy test from the Jim Crow era. Constitutional law scholar William W. Van Alstyne of Duke once famously administered a similar test to fellow professors, and they failed. The test mostly vanished with the Voting Rights Act of 1965.