Eero Nevalainen How are you able to reproduce this? When I run `mvn test` all tests compile and run successfully. I have seen the error in IDE, but nowhere else. I know the workaround, but since it doesn't seem to affect the actual functionality of the tests I haven't done that to all the tests.
Ah, interesting. I specifically try to run the tests in an IDE. Maybe maven and Eclipse use different compiler levels or there is some other "flag" that makes it stricter in the IDE?