/** Test of packKeyValues method, of class NotificationServerUtil. */ @Test public void testPackKeyValues() { Map<String, Object> params = new LinkedHashMap<String, Object>(2); params.put("date", new Date(1358963160000l)); params.put("string", "bonjour le monde; 0 + 0 = la tête à toto"); params.put("title", "Titre d'œuvre"); String expResult = "date=#DATE#1358963160000;string=bonjour le monde;; 0 + 0 == la tête à toto;title=Titre d'œuvre"; String result = NotificationServerUtil.packKeyValues(params); assertEquals(expResult, result); }