@Test
public void onOkPreserveButton() {

    ((PreserveDeletePopupView)popupView).okPreserveCommand = null;
    ((PreserveDeletePopupView)popupView).onOkPreserveButton(mouseEventMock);
    verify(okPreserveCommandMock, never()).execute();
    verify(popupView, times(1)).hide();
    reset(popupView);
    ((PreserveDeletePopupView)popupView).okPreserveCommand = okPreserveCommandMock;
    ((PreserveDeletePopupView)popupView).onOkPreserveButton(mouseEventMock);
    verify(okPreserveCommandMock, times(1)).execute();
    verify(popupView, times(1)).hide();
}