@@ -0,0 +1,2565 @@
+package org.skyscreamer.jsonassert;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.Assert.assertFalse;%0Aimport static junit.framework.Assert.assertTrue;%0Aimport static org.skyscreamer.jsonassert.JSONCompareMode.LENIENT;%0Aimport static org.skyscreamer.jsonassert.JSONCompareMode.NON_EXTENSIBLE;%0Aimport static org.skyscreamer.jsonassert.JSONCompareMode.STRICT;%0Aimport static org.skyscreamer.jsonassert.JSONCompareMode.STRICT_ORDER;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * Unit tests for %7B@link JSONCompareMode%7D%0A */%0Apublic class JSONCompareModeTest %7B%0A    @Test%0A    public void testWithStrictOrdering() %7B%0A        assertTrue(LENIENT.withStrictOrdering(true).hasStrictOrder());%0A        assertTrue(LENIENT.withStrictOrdering(true).isExtensible());%0A        assertTrue(NON_EXTENSIBLE.withStrictOrdering(true).hasStrictOrder());%0A        assertFalse(NON_EXTENSIBLE.withStrictOrdering(true).isExtensible());%0A        %0A        assertEquals(STRICT.withStrictOrdering(true), STRICT);%0A        assertEquals(STRICT_ORDER.withStrictOrdering(true), STRICT_ORDER);%0A    %7D%0A    %0A    @Test%0A    public void testWithoutStrictOrdering() %7B%0A        assertFalse(STRICT_ORDER.withStrictOrdering(false).hasStrictOrder());%0A        assertTrue(STRICT_ORDER.withStrictOrdering(false).isExtensible());%0A        assertFalse(STRICT.withStrictOrdering(false).hasStrictOrder());%0A        assertFalse(STRICT.withStrictOrdering(false).isExtensible());%0A        %0A        assertEquals(LENIENT.withStrictOrdering(false), LENIENT);%0A        assertEquals(NON_EXTENSIBLE.withStrictOrdering(false), NON_EXTENSIBLE);%0A    %7D%0A    %0A    @Test%0A    public void testWithExtensibility() %7B%0A        assertTrue(NON_EXTENSIBLE.withExtensible(true).isExtensible());%0A        assertFalse(NON_EXTENSIBLE.withExtensible(true).hasStrictOrder());%0A        assertTrue(STRICT.withExtensible(true).isExtensible());%0A        assertTrue(STRICT.withExtensible(true).hasStrictOrder());%0A        %0A        assertEquals(LENIENT.withExtensible(true), LENIENT);%0A        assertEquals(STRICT_ORDER.withExtensible(true), STRICT_ORDER);%0A    %7D%0A    %0A    @Test%0A    public void testWithoutExtensibility() %7B%0A        assertFalse(STRICT_ORDER.withExtensible(false).isExtensible());%0A        assertTrue(STRICT_ORDER.withExtensible(false).hasStrictOrder());%0A        assertFalse(LENIENT.withExtensible(false).isExtensible());%0A        assertFalse(LENIENT.withExtensible(false).hasStrictOrder());%0A        %0A        assertEquals(STRICT.withExtensible(false), STRICT);%0A        assertEquals(NON_EXTENSIBLE.withExtensible(false), NON_EXTENSIBLE);%0A    %7D%0A%7D%0A

Add unit test for withStrictOrdering() and withExtensible()