Index: test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java
===================================================================
--- test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java	(revision 16718)
+++ test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java	(working copy)
@@ -339,13 +339,17 @@
         ReportedException reportedException = assertThrows(ReportedException.class, command::executeCommand);
         StringWriter stringWriter = new StringWriter();
         reportedException.printReportDataTo(new PrintWriter(stringWriter));
-        assertEquals("=== REPORTED CRASH DATA ===\n" +
-                "sequence_information:\n" +
-                " - sequence_name: Sequence: test\n" +
-                " - sequence_command: foo command\n" +
-                " - sequence_index: 0\n" +
-                " - sequence_commands: [null]\n" +
-                " - sequence_commands_descriptions: [foo command]\n" +
-                "\n", stringWriter.toString());
+
+        StringWriter expected = new StringWriter();
+        PrintWriter expectedPrintWriter = new PrintWriter(expected);
+        expectedPrintWriter.println("=== REPORTED CRASH DATA ===");
+        expectedPrintWriter.println("sequence_information:");
+        expectedPrintWriter.println(" - sequence_name: Sequence: test");
+        expectedPrintWriter.println(" - sequence_command: foo command");
+        expectedPrintWriter.println(" - sequence_index: 0");
+        expectedPrintWriter.println(" - sequence_commands: [null]");
+        expectedPrintWriter.println(" - sequence_commands_descriptions: [foo command]");
+        expectedPrintWriter.println("");
+        assertEquals(expected.toString(), stringWriter.toString());
     }
 }
