@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));
}