public ObjPackage setObj(Object obj)
        {
            this.obj = obj;
            olist = new ArrayList<Object>();
            olist.add(obj);
            omap = new HashMap<String, Object>();
            omap.put("obj", obj);
            
            if (obj instanceof MainData)
            {
                data = (MainData)obj;
                list = new ArrayList<MainData>();
                list.add((MainData)obj);
                map = new HashMap<String, MainData>();
                map.put("obj", (MainData)obj);
            }

            return this;
        }
Lazy registration tests.

@author David Yu
@created Oct 29, 2016
protostuff-runtime/src/test/java/io/protostuff/runtime/LazyRegisterTest.java