Description
Current assertion is :
Assert.assertEquals("java.io.FileNotFoundException: /path/does/not/exist " + ...)
On Windows the message is a bit different The tail end part /path/.. is not same.
Suffices to check the prefix to be platform independent: Assert.assertTrue(ex.getMessage().startsWith("java.io.FileNotFoundException"));