package com.alibaba.json.bvt.guava;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.HashMultimap;
import com.google.gson.Gson;
import junit.framework.TestCase;

/**
 * Created by wenshao on 15/01/2017.
 */
public class HashMultimapTest extends TestCase {
    public void test_for_multimap() throws Exception {
        HashMultimap map = HashMultimap.create();
        map.put("name", "a");
        map.put("name", "b");

        String json = JSON.toJSONString(map);
        assertEquals("{\"name\":[\"a\",\"b\"]}", json);
    }
}

@@ -546,17 +546,27 @@
   assert
-E
+True(json.e
 quals(%22%7B
@@ -593,14 +593,52 @@
 %22%5D%7D%22
-,
+) %7C%7C
  json
+.equals(%22%7B%5C%22name%5C%22:%5B%5C%22b%5C%22,%5C%22a%5C%22%5D%7D%22)
 );%0A 

Fix flaky test HashMultimapTest