static void verifyCyclic(Bean bean, boolean collectionSchemaOnRepeatedFields)
    {
        assertEquals(bean.name, "bean_cyclic");

        assertNotNull(bean.firstEnumSet);
        if (collectionSchemaOnRepeatedFields)
            assertTrue(bean.firstEnumSet == bean.secondEnumSet);
        else
            assertEquals(bean.firstEnumSet, bean.secondEnumSet);

        assertEquals(EnumSet.allOf(Sequence.class), bean.firstEnumSet);

        assertNotNull(bean.firstEnumMap);
        if (collectionSchemaOnRepeatedFields)
            assertTrue(bean.firstEnumMap == bean.secondEnumMap);
        else
            assertEquals(bean.firstEnumMap, bean.secondEnumMap);

        assertEquals(newSequenceMap(), bean.firstEnumMap);

        assertNotNull(bean.firstSet);

        if (collectionSchemaOnRepeatedFields)
            assertTrue(bean.firstSet == bean.secondSet);
        else
            assertEquals(bean.firstSet, bean.secondSet);

        assertEquals(newSequenceSet(), bean.firstSet);

        assertNotNull(bean.firstMap);

        if (collectionSchemaOnRepeatedFields)
            assertTrue(bean.firstMap == bean.secondMap);
        else
            assertEquals(bean.firstMap, bean.secondMap);

        assertEquals(newSequenceMap(), bean.firstMap);
    }
Test ser/deser of pojos with {@link EnumSet} and {@link EnumMap} fields.

@author David Yu
@created Feb 9, 2011
protostuff-runtime/src/test/java/io/protostuff/runtime/EnumSetAndMapTest.java