@Test
public void testShowMessage() throws Exception {

    final ClientRuntimeError error = mock(ClientRuntimeError.class);
    final String message = "message";
    final Throwable cause = mock(Throwable.class);
    final String localizedMessage = "localizedMessage";
    when(cause.getLocalizedMessage()).thenReturn(localizedMessage);
    when(error.getMessage()).thenReturn(message);
    when(error.getRootCause()).thenReturn(cause);
    presenter.showMessage(error);
    verify(view, times(1)).showMessage(anyString(), any(Command.class), any(Command.class));
}