Index: trunk/test/unit/org/openstreetmap/josm/gui/io/ChangesetCommentModelTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/io/ChangesetCommentModelTest.java	(revision 13109)
+++ trunk/test/unit/org/openstreetmap/josm/gui/io/ChangesetCommentModelTest.java	(revision 13109)
@@ -0,0 +1,47 @@
+// License: GPL. For details, see LICENSE file.
+package org.openstreetmap.josm.gui.io;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.Arrays;
+import java.util.Collections;
+
+import org.junit.Rule;
+import org.junit.Test;
+import org.openstreetmap.josm.testutils.JOSMTestRules;
+
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+
+/**
+ * Unit tests of {@link ChangesetCommentModel} class.
+ */
+public class ChangesetCommentModelTest {
+
+    /**
+     * Setup tests
+     */
+    @Rule
+    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
+    public JOSMTestRules test = new JOSMTestRules();
+
+    /**
+     * Test of {@link ChangesetCommentModel#findHashTags}.
+     */
+    @Test
+    public void testFindHashTags() {
+        ChangesetCommentModel model = new ChangesetCommentModel();
+        assertEquals(Collections.emptyList(), model.findHashTags());
+        model.setComment(" ");
+        assertEquals(Collections.emptyList(), model.findHashTags());
+        model.setComment(" #");
+        assertEquals(Collections.emptyList(), model.findHashTags());
+        model.setComment(" # ");
+        assertEquals(Collections.emptyList(), model.findHashTags());
+        model.setComment(" https://example.com/#map ");
+        assertEquals(Collections.emptyList(), model.findHashTags());
+        model.setComment(" #foo ");
+        assertEquals(Arrays.asList("#foo"), model.findHashTags());
+        model.setComment(" #foo #bar baz");
+        assertEquals(Arrays.asList("#foo", "#bar"), model.findHashTags());
+    }
+}
