@@ -0,0 +1,2085 @@
+package com.networknt.server;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport java.lang.reflect.Method;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Apublic class DefaultConfigLoaderTest %7B%0A%0A    public static DefaultConfigLoader configLoader;%0A%0A    @BeforeClass%0A    public static void beforeClass() %7B%0A        configLoader = new DefaultConfigLoader();%0A    %7D%0A%0A    @Test%0A    public void testProcessNestedMap() throws Exception %7B%0A        Map%3CString, Object%3E map = new HashMap%3C%3E();%0A        map.put(%22test1%22,%0A                %22%5Cn%22 +%0A                %22  languages:%5Cn%22 +%0A                %22    - Ruby%5Cn%22 +%0A                %22    - Perl%5Cn%22 +%0A                %22    - Python %5Cn%22 +%0A                %22  websites:%5Cn%22 +%0A                %22    YAML: yaml.org%5Cn%22 +%0A                %22    Ruby: ruby-lang.org%5Cn%22 +%0A                %22    Python: python.org%5Cn%22 +%0A                %22    Perl: use.perl.org%22);%0A        map.put(%22test2%22,%0A                %22%5Cn%22 +%0A                %22  - aaaa%5Cn%22 +%0A                %22  - bbbb%5Cn%22 +%0A                %22  -%5Cn%22 +%0A                %22    id: 1%5Cn%22 +%0A                %22    name: company1%5Cn%22 +%0A                %22    price: 200W%5Cn%22 +%0A                %22  -%5Cn%22 +%0A                %22    id: 2%5Cn%22 +%0A                %22    name: company2%5Cn%22 +%0A                %22    price: 500W%5Cn%22 +%0A                %22  -%5Cn%22 +%0A                %22    -aaaa%5Cn%22 +%0A                %22    -bbbb%5Cn%22 +%0A                %22  - abc: abc%5Cn%22 +%0A                %22    ccc: ccc%5Cn%22 +%0A                %22    ddd: ddd%22);%0A        Method processNestedMapMethod = DefaultConfigLoader.class.getDeclaredMethod(%22processNestedMap%22, Map.class);%0A        processNestedMapMethod.setAccessible(true);%0A        processNestedMapMethod.invoke(configLoader, map);%0A%0A        Map%3CString, Object%3E result = (Map)map.get(%22test1%22);%0A        List%3CString%3E result1 = (List)result.get(%22languages%22);%0A        Assert.assertEquals(%22Ruby%22, result1.get(0));%0A        Map%3CString, String%3E result2 = (Map)result.get(%22websites%22);%0A        Assert.assertEquals( %22yaml.org%22, result2.get(%22YAML%22));%0A        System.out.println(map);%0A%0A    %7D%0A%7D%0A

add DefaultConfigLoaderTest.java (#1192)