@Test
public void onOkClick() {

    popupView.okCommand = null;
    popupView.onOkClick(mouseEventMock);
    verify(okCommandMock, never()).execute();
    verify(popupView, times(1)).hide();
    reset(popupView);
    popupView.okCommand = okCommandMock;
    popupView.onOkClick(mouseEventMock);
    verify(okCommandMock, times(1)).execute();
    verify(popupView, times(1)).hide();
}