ListImpl extends com.adobe.cq.wcm.core.components.internal.models.v1.ListImpl implements List { @Override @NotNull @JsonProperty("items") public Collection<ListItem> getListItems() { if (this.listItems == null) { this.listItems = super.getPages().stream() .filter(Objects::nonNull) .map(page -> new PageListItemImpl(request, page, getId(), PageListItemImpl.PROP_DISABLE_SHADOWING_DEFAULT)) .collect(Collectors.toList()); } return this.listItems; }  @Override @NotNull @JsonProperty("items") Collection<ListItem> getListItems();  }
@Test public void testProperties() { List list = getListUnderTest(LIST_1); assertTrue(list.showDescription()); assertTrue(list.showModificationDate()); assertTrue(list.linkItems()); assertTrue(list.linkItems()); assertEquals(2, list.getListItems().size()); Utils.testJSONExport(list, Utils.getTestExporterJSONPath(TEST_BASE, LIST_1)); }