Index: trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelectorTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelectorTest.java	(revision 13836)
+++ trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelectorTest.java	(revision 13836)
@@ -0,0 +1,38 @@
+// License: GPL. For details, see LICENSE file.
+package org.openstreetmap.josm.gui.tagging.presets;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Rule;
+import org.junit.Test;
+import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetSelector.PresetClassification;
+import org.openstreetmap.josm.testutils.JOSMTestRules;
+
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+
+/**
+ * Unit tests of {@link TaggingPresetSelector} class.
+ */
+public class TaggingPresetSelectorTest {
+
+    /**
+     * Setup rule
+     */
+    @Rule
+    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
+    public JOSMTestRules test = new JOSMTestRules();
+
+    /**
+     * Unit test for {@link PresetClassification#isMatching}.
+     */
+    @Test
+    public void testIsMatching() {
+        TaggingPreset preset = new TaggingPreset();
+        preset.name = "estação de bombeiros"; // fire_station in brazilian portuguese
+        PresetClassification pc = new PresetClassification(preset);
+        assertEquals(0, pc.isMatchingName("foo"));
+        assertTrue(pc.isMatchingName("estação") > 0);
+        assertTrue(pc.isMatchingName("estacao") > 0);
+    }
+}
