### Question:
ItemElementPresenter extends ElementPresenter<ItemElementView> implements ItemElementView.Presenter { @Override public void onStopEditingItem(ItemElementView itemElementView) { propertyPresenter.stopEditProperties(itemElementView.getItemId()); itemIdExpandablePropertiesMap.get(itemElementView.getItemId()).forEach(expandablePropertyName -> propertyPresenter.stopEditProperties(expandablePropertyName)); itemElementView.getSaveChange().getStyle().setDisplay(Style.Display.NONE); collectionEditorPresenter.toggleEditingStatus(false); }  @Override LIElement getItemContainer(String itemId, Map<String, String> simplePropertiesMap, Map<String, Map<String, String>> expandablePropertiesValues); @Override void onToggleRowExpansion(ItemElementView itemElementView, boolean isShown); @Override void onEditItem(ItemElementView itemElementView); @Override void onStopEditingItem(ItemElementView itemElementView); @Override void updateItem(ItemElementView itemElementView); @Override void onDeleteItem(ItemElementView itemElementView); @Override Map<String, Map<String, String>> getSimpleItemsProperties(); @Override Map<String, Map<String, Map<String, String>>> getExpandableItemsProperties();  }### Answer:
@Test public void onStopEditingItem() { elementPresenter.onStopEditingItem(elementView1Mock); verify(elementPresenter, never()).onToggleRowExpansion(eq(elementView1Mock), eq((false))); verify(propertyPresenterMock, times(1)).stopEditProperties(eq(ELEMENT1_ID)); verify(styleMock, times(1)).setDisplay(eq(Style.Display.NONE)); verify(collectionPresenterMock, times(1)).toggleEditingStatus(eq(false)); }