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