Fixed JUnit tests for JENKINS-24133 on Windows