@@ -0,0 +1,1495 @@
+package com.alibaba.json.bvt.util;%0A%0Aimport com.alibaba.fastjson.JSONObject;%0Aimport com.alibaba.fastjson.util.AntiCollisionHashMap;%0Aimport junit.framework.TestCase;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0A%0Apublic class AntiCollisionHashMapTest extends TestCase %7B%0A    public void test_0() throws Exception %7B%0A        AntiCollisionHashMap m = new AntiCollisionHashMap(3, 0.75f);%0A%0A        for (int i = 0; i %3C 100; ++i) %7B%0A            m.put(i, i);%0A        %7D%0A%0A        AntiCollisionHashMap m2 = new AntiCollisionHashMap(m);%0A        assertEquals(m.size(), m2.size());%0A%0A        AntiCollisionHashMap m3 = new AntiCollisionHashMap(3, 0.75f);%0A        m3.putAll(m);%0A        assertEquals(m.size(), m2.size());%0A%0A        for (int i = 0; i %3C 100; ++i) %7B%0A            m3.remove(i);%0A            m2.remove(i, i);%0A        %7D%0A%0A        %7B%0A            ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();%0A            ObjectOutputStream objOut = new ObjectOutputStream(bytesOut);%0A            objOut.writeObject(m);%0A            objOut.flush();%0A%0A            byte%5B%5D bytes = bytesOut.toByteArray();%0A%0A            ByteArrayInputStream bytesIn = new ByteArrayInputStream(bytes);%0A            ObjectInputStream objIn = new ObjectInputStream(bytesIn);%0A%0A            Object obj = objIn.readObject();%0A%0A            assertEquals(AntiCollisionHashMap.class, obj.getClass());%0A            assertEquals(m, obj);%0A        %7D%0A    %7D%0A%7D%0A

add testcase.