@Test
public void getObjects() {

    ListValue lv = PropertyValue.createList();
    PropertyValue val = PropertyValue.createObject("k");
    lv.addPropertyValue(val);
    PropertyValue val2 = PropertyValue.createObject("k2");
    lv.addPropertyValue(val2);
    assertThat(lv.getObjects("[0]")).isNotEmpty().hasSize(1);
    assertThat(lv.getObjects("[1]")).isNotEmpty().hasSize(1);
    assertThat(lv.getObjects("foo")).isEmpty();
}