PropertyPresenter implements PropertyView.Presenter { @Override public void onToggleRowExpansion(String itemId, boolean isShown) { propertyViewMap.get(itemId) .forEach(propertyEditorView -> CollectionEditorUtils.toggleRowExpansion(propertyEditorView.getPropertyFields(), isShown)); }  @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 onToggleRowExpansion() { propertyEditorPresenter.onToggleRowExpansion(ITEM_ID, true); verify(propertyFieldsMock, times(1)).addClassName(eq(NODE_HIDDEN)); verify(styleMock, times(1)).setDisplay(eq(Style.Display.NONE)); propertyEditorPresenter.onToggleRowExpansion(ITEM_ID, false); verify(propertyFieldsMock, times(1)).removeClassName(eq(NODE_HIDDEN)); verify(styleMock, times(1)).setDisplay(eq(Style.Display.BLOCK)); }