@Test
public void iterator() {

    ListValue lv = PropertyValue.createList();
    PropertyValue val = new PropertyValue(  "k", "v");
    PropertyValue val2 = new PropertyValue(  "k", "v");
    lv.addPropertyValue(val);
    lv.addPropertyValue(val2);
    Iterator iter = lv.iterator();
    assertThat(iter).isNotNull();
    assertThat(iter.hasNext()).isTrue();
    assertThat(val).isEqualTo(iter.next());
    assertThat(iter.hasNext()).isTrue();
    assertThat(val2).isEqualTo(iter.next());
    assertThat(iter.hasNext()).isFalse();
}