@Test
public void updateWithError() throws Exception {

    when(updateManager.update()).thenReturn(Observable.error(new IOException("abort")));
    presenter.update();
    verify(view).showToast(anyInt());
    verify(view).gotoReaderActivity();
}