diff --git a/app/src/test/java/eu/faircode/email/HtmlHelperTest.java b/app/src/test/java/eu/faircode/email/HtmlHelperTest.java
index f71011dc78..172fd181bd 100644
--- a/app/src/test/java/eu/faircode/email/HtmlHelperTest.java
+++ b/app/src/test/java/eu/faircode/email/HtmlHelperTest.java
@@ -55,6 +55,55 @@ class HtmlHelperTest {
"http://example.org/ and " +
"http://example.org/subdir/"
);
+
+ testAutolink(
+ "http://example.org/ and http://example.org/ and http://example.org/",
+
+ // FIXME: Even when the same URL is mentioned multiple times,
+ // each of the URLs must only appear a single time.
+ "" +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ "\">" +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ "" +
+ " and " +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ "\">" +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ "" +
+ " and " +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ "\">" +
+ "http://example.org/" +
+ "\">" +
+ "http://example.org/" +
+ "" +
+ ""
+ );
}
private void testAutolink(String input, String expectedOutput) {