FieldItemPresenter implements FieldItemView.Presenter { @Override public LIElement getLIElement(String parentPath, String factName, String fieldName, String className, String classTypeName) { String key = parentPath + "." + fieldName; if (!fieldItemMap.containsKey(key)) { FieldItemView fieldItemView = viewsProvider.getFieldItemView(); fieldItemView.setFieldData(parentPath, factName, fieldName, className, classTypeName); fieldItemView.setPresenter(this); fieldItemMap.put(key, fieldItemView); } return fieldItemMap.get(key).getLIElement(); }  @Override LIElement getLIElement(String parentPath, String factName, String fieldName, String className, String classTypeName); @Override void setListGroupItemPresenter(ListGroupItemView.Presenter listGroupItemPresenter); void onFieldElementClick(FieldItemView selected); @Override void unselectAll(); @Override void showAll(); @Override void reset();  }
@Test public void getLIElement() { fieldItemPresenter.getLIElement("", FACT_NAME, FACT_NAME, FACT_MODEL_TREE.getFactName(), CLASS_NAME); verify(viewsProviderMock, times(1)).getFieldItemView(); verify(mockFieldItemView, times(1)).setFieldData(eq(""), eq(FACT_NAME), eq(FACT_NAME), eq(FACT_MODEL_TREE.getFactName()), eq(CLASS_NAME)); verify(mockFieldItemView, times(1)).setPresenter(eq(fieldItemPresenter)); }