package com.alibaba.json.bvt.parser;

import java.util.Map;

import org.junit.Assert;

import com.alibaba.fastjson.JSON;

import junit.framework.TestCase;

public class ReadOnlyMapTest2 extends TestCase {

    public void test_readOnlyNullList() throws Exception {
        String text = "{\"values\":{\"a\":{}}}";
        Entity entity = JSON.parseObject(text, Entity.class);
        Assert.assertNotNull(entity);
        Assert.assertNotNull(entity.values);
    }

    public static class Entity {

        private Map<String, A> values;

        public Map<String, A> getValues() {
            return values;
        }

    }

    public static class A {

    }
}
