@Test
    public void parseMapTest() {
        Map<String, String> map1 = Utils.parseMap("k1=v1,k2=v2,k3=v3", "=", ",");
        assertEquals(3, map1.size());
        assertEquals("v1", map1.get("k1"));
        assertEquals("v2", map1.get("k2"));
        assertEquals("v3", map1.get("k3"));

        Map<String, String> map3 = Utils.parseMap("k4=v4,k5=v5=vv5=vvv5", "=", ",");
        assertEquals(2, map3.size());
        assertEquals("v4", map3.get("k4"));
        assertEquals("v5=vv5=vvv5", map3.get("k5"));
    }
Test to read content of named pipe as string. As reading/writing to a pipe can block,
timeout test after a minute (test finishes within 100 ms normally).
clients/src/test/java/org/apache/kafka/common/utils/UtilsTest.java