Index: trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java	(revision 17612)
+++ trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java	(revision 17613)
@@ -3,4 +3,5 @@
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.openstreetmap.josm.data.osm.OsmPrimitiveType.NODE;
@@ -54,4 +55,14 @@
             return new Environment(osm);
         }
+    }
+
+    /**
+     * Unit test of {@link Functions#title}.
+     */
+    @Test
+    void testTitle() {
+        assertNull(Functions.title(null));
+        assertEquals("", Functions.title(""));
+        assertEquals("I Am Fine", Functions.title("i am FINE"));
     }
 
