    @Test
    public void shouldHandleError() {

        when(booksRepository.getBooks()).thenReturn(Single.<List<Book>>error(new Throwable("boom")));

        presenter.loadBooks();

        verify(view).displayError();
    }