@@ -0,0 +1,1408 @@
+package org.skyscreamer.jsonassert.comparator;%0A%0Aimport junit.framework.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A/**%0A * Test JSONCompareUtil%0A *%0A * @author Carter Page %3Ccarter@skyscreamer.org%3E%0A */%0Apublic class JSONCompareUtilTest %7B%0A    @Test%0A    public void testGetCardinalityMap() %7B%0A        final int NUM_A = 76;%0A        final int NUM_B = 3;%0A        final int NUM_C = 0;%0A        final int NUM_D = 1;%0A        final int NUM_E = 2;%0A%0A        List%3CString%3E listToTest = new ArrayList%3CString%3E(NUM_A + NUM_B + NUM_C + NUM_D + NUM_E);%0A        for (int i = 0; i %3C NUM_A; ++i) listToTest.add(%22A%22);%0A        for (int i = 0; i %3C NUM_B; ++i) listToTest.add(%22B%22);%0A        for (int i = 0; i %3C NUM_C; ++i) listToTest.add(%22C%22);%0A        for (int i = 0; i %3C NUM_D; ++i) listToTest.add(%22D%22);%0A        for (int i = 0; i %3C NUM_E; ++i) listToTest.add(%22E%22);%0A        Collections.shuffle(listToTest);%0A%0A        Map%3CString, Integer%3E cardinalityMap = JSONCompareUtil.getCardinalityMap(listToTest);%0A        Assert.assertEquals(NUM_A, cardinalityMap.get(%22A%22).intValue());%0A        Assert.assertEquals(NUM_B, cardinalityMap.get(%22B%22).intValue());%0A        Assert.assertNull(cardinalityMap.get(%22C%22));%0A        Assert.assertEquals(NUM_D, cardinalityMap.get(%22D%22).intValue());%0A        Assert.assertEquals(NUM_E, cardinalityMap.get(%22E%22).intValue());%0A    %7D%0A%7D%0A

Add test for JSONCompareUtil