[junit] Using JUnit 4 compatibility runner causes printing the class name of the JUnit facade and not of the original class. Changed so that we use the real class again by interpreting the toString format.