@Test
public void toLocalMap() {

    ObjectValue n = PropertyValue.createObject("");
    n.setValue("a", "aVal");
    n.addObject("b").addObject("b2").setValue("b3", "b3Val");
    ListValue array = n.addList("c");
    array.addValue("cVal1");
    array.addValue("cVal2");
    Map<String,String> map = n.toMap();
    System.out.println(map);
    assertThat(map).hasSize(4);
    assertThat("aVal").isEqualTo(map.get("a"));
    assertThat("b3Val").isEqualTo(map.get("b.b2.b3"));
    assertThat("cVal1").isEqualTo(map.get("c[0]"));
    assertThat("cVal2").isEqualTo(map.get("c[1]"));
}