static void doBeanCyclic(IdStrategy strategy)
    {
        boolean csorf = 
                0 != (strategy.flags & (IdStrategy.COLLECTION_SCHEMA_ON_REPEATED_FIELDS));
        
        Bean bean = fillCyclic(new Bean());

        verifyCyclic(bean, csorf);

        Schema<Bean> schema = RuntimeSchema.getSchema(Bean.class, strategy);
        // print(schema);
        byte[] bytes = GraphIOUtil.toByteArray(bean, schema,
                LinkedBuffer.allocate(256));

        Bean deBean = new Bean();
        GraphIOUtil.mergeFrom(bytes, deBean, schema);

        verifyCyclic(deBean, csorf);
    }
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