Junit test in IntelliJ IDE can't see class for testing
See those white x-es next to the class name?
Somehow you have excluded RandomizedQueue class from the compilation.
Remove it from the excludes and everything will be back to where it was before.
PS: Coursera FTW :-)