@Test
public void dismissModal_previousViewIsNotDetachedIfOverCurrentContext() {

    modal1.options.modal.presentationStyle = ModalPresentationStyle.OverCurrentContext;
    disableShowModalAnimation(modal1, modal2);
    uut.showModal(modal1, root, new CommandListenerAdapter());
    assertThat(root.getView().getParent()).isNotNull();
    verify(root, times(0)).onViewDisappear();
}