@Test
public void toListValue() {

    ObjectValue ov = PropertyValue.createObject("foo");
    ov.addList("list").addValue("a");
    ListValue lv = ov.toListValue();
    assertThat(lv).isNotNull();
    assertThat(lv.getKey()).isEqualTo(ov.getKey());
    assertThat(lv.getPropertyValue(0)).isNotNull();
    assertThat(ov.getValue("list")).isEqualTo(lv.getPropertyValue(0).getValue());
}