@Test
public void iterator() {

    ObjectValue ov = PropertyValue.createObject();
    PropertyValue val = new PropertyValue("k1", "v");
    PropertyValue val2 = new PropertyValue("k2", "v");
    ov.setPropertyValue(val);
    ov.setPropertyValue(val2);
    Iterator iter = ov.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();
}