@SuppressWarnings("Convert2Lambda")
@Test
public void dismissModal() {

    uut.showModal(modal1, root, new CommandListenerAdapter());
    CommandListener listener = spy(new CommandListenerAdapter());
    uut.dismissModal(modal1.getId(), root, listener);
    assertThat(findModal(modal1.getId())).isNull();
    verify(presenter, times(1)).dismissModal(eq(modal1), eq(root), eq(root), any());
    verify(listener).onSuccess(modal1.getId());
}