@Test
public void decodeMap() {

    Assertions.assertNull(CollectionUtils.decodeMap(null));
    Map<String, String> map = CollectionUtils.decodeMap("");
    Assertions.assertEquals(0, map.size());
    map = CollectionUtils.decodeMap("x=1");
    Assertions.assertEquals(1, map.size());
    Assertions.assertEquals("1", map.get("x"));
    map = CollectionUtils.decodeMap("x=1&y=2");
    Assertions.assertEquals(2, map.size());
    Assertions.assertEquals("2", map.get("y"));
}