I run my test cases successfully through Intellij. But I got the "java.lang.ClassCastException" error when I run scalatest through "mvn test" command.