@Test
public void populateListGroupItemView() {

    listGroupItemPresenter.populateListGroupItemView(listGroupItemViewMock, "", FACT_MODEL_TREE.getFactName(), FACT_MODEL_TREE);
    verify(listGroupItemViewMock, times(1)).setFactName(eq(FACT_MODEL_TREE.getFactName()));
    Map<String, FactModelTree.PropertyTypeName> simpleProperties = FACT_MODEL_TREE.getSimpleProperties();
    InOrder inOrder = inOrder(fieldItemPresenterSpy);
    simpleProperties.keySet().stream().sorted().forEach(key -> {
        FactModelTree.PropertyTypeName value = simpleProperties.get(key);
        inOrder.verify(fieldItemPresenterSpy, times(1)).getLIElement(eq(FACT_MODEL_TREE.getFactName()), eq(FACT_MODEL_TREE.getFactName()), eq(key), eq(value.getTypeName()), eq(value.getPropertyTypeNameToVisualize()));
    });
    verify(listGroupItemViewMock, times(simpleProperties.size())).addFactField(anyObject());
    reset(listGroupItemViewMock);
    Map<String, String> expandableProperties = FACT_MODEL_TREE.getExpandableProperties();
    expandableProperties.entrySet().stream().sorted().forEach(entry -> inOrder.verify(listGroupItemPresenter, times(1)).getDivElement(eq(""), eq(entry.getKey()), eq(entry.getValue())));
    verify(listGroupItemViewMock, times(expandableProperties.size())).addExpandableFactField(anyObject());
}