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