Index: trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TaginfoActionTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TaginfoActionTest.java	(revision 16596)
+++ trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TaginfoActionTest.java	(revision 16597)
@@ -4,4 +4,6 @@
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
+
+import javax.swing.Action;
 
 import org.junit.Rule;
@@ -36,4 +38,14 @@
      */
     @Test
+    public void testCustomInstance() {
+        TaginfoAction action = new TaginfoAction(() -> null, () -> null).withTaginfoUrl("example.com", "https://taginfo.example.com////");
+        assertEquals("example.com", action.getValue(Action.NAME));
+        assertEquals("https://taginfo.example.com/keys/railway", action.getTaginfoUrlForTag(new Tag("railway")));
+    }
+
+    /**
+     * Unit test of {@link TaginfoAction#toTagHistoryAction()}
+     */
+    @Test
     public void testTagHistoryUrls() {
         TaginfoAction action = new TaginfoAction(() -> null, () -> null).toTagHistoryAction();
