import com.alibaba.fastjson.util.ThreadLocalCache;
public class ThreadLocalCacheTest extends TestCase {
public void test() throws Exception {
new ThreadLocalCache();
ThreadLocalCache.clearChars();
Assert.assertEquals(ThreadLocalCache.getChars(0).length, 1024);
Assert.assertEquals(ThreadLocalCache.getChars(1024).length, 1024);
Assert.assertEquals(ThreadLocalCache.getChars(2048).length, 2048);