/** * Tests format options with embedded separators * * @throws ParseException if the string can't be parsed. */ public void testEmbeddedSeparators() throws Exception { Map<String, String> expected = new HashMap<String, String>() { { put("key1", "value:1"); put("key2", "value:2"); put("key3", "value:3:ZZ;XX"); } }; Map<String, String> actual = (Map<String, String>) parser.parse("key1:value:1;key2:value:2;key3:value:3\\:ZZ\\;XX"); assertEquals(expected, actual); }