@Test
  public void testMapDeepCopy() {
    Map<Season, Complex1> map1 = new HashMap<>();
    Complex1 in1 = new Complex1();
    in1.hashMap.put(Season.SUMMER, 2);
    map1.put(Season.SUMMER, in1);

    Map<Season, Complex1> map2 = CopyHelper.deepCopy(map1);

    assertEquals(map1, map2);

    Complex1 data1 = map1.get(Season.SUMMER);
    Complex1 data2 = map2.get(Season.SUMMER);

    assertEquals(data1, data2);
    assertNotSame(data1, data2);
  }
Tests the functionality of the {@link CopyHelper#copy} method and the builtin copy-on-get Cache
functions.

@since GemFire 4.0
geode-core/src/integrationTest/java/org/apache/geode/CopyJUnitTest.java