Use MarkUp.EOL instead of System.getProperty( "line.separator" ) ( I don't see the difference, but this seems to fix the failing tests )