assertTrue(modal.isVisible());
verify(showHandler).onShow(any(ShowEvent.class));
verify(shownHandler).onShown(any(ShownEvent.class));
modal.hide();
assertFalse(modal.isVisible());
verify(hideHandler).onHide(any(HideEvent.class));
verify(hiddenHandler).onHidden(any(HiddenEvent.class));