PropertyPresenter implements PropertyView.Presenter { @Override public void deleteProperties(String itemId) { propertyViewMap.get(itemId) .forEach(this::deletePropertyView); propertyViewMap.remove(itemId); }  @Override String getPropertyValue(String propertyName); @Override void editProperties(String itemId); @Override void stopEditProperties(String itemId); @Override Map<String, String> updateProperties(String itemId); @Override Map<String, String> getSimpleProperties(String itemId); @Override LIElement getPropertyFields(String itemId, String propertyName, String propertyValue); @Override LIElement getEditingPropertyFields(String itemId, String propertyName, String propertyValue); @Override void onToggleRowExpansion(String itemId, boolean isShown); @Override void deleteProperties(String itemId);  }
@Test public void deleteProperties() { propertyEditorPresenter.deleteProperties(ITEM_ID); verify(propertyFieldsMock, times(1)).removeFromParent(); assertFalse(propertySpanElementMapLocal.containsKey(TEST_PROPERTYNAME)); assertFalse(propertyViewMapLocal.containsKey(ITEM_ID)); }