/** * Tests normal-style format options * * @throws ParseException if the string can't be parsed. */ public void testPairs() throws Exception { Map<String, String> expected = new HashMap<String, String>() { { put("key1", "value1"); put("key2", "value2"); put("key3", "true"); put("key4", "value4"); } }; Map<String, String> actual = (Map<String, String>) parser.parse("key1:value1;key2:value2;key3;key4:value4"); assertEquals(expected, actual); }