@Test
public void update() throws Exception {

    when(updateManager.update()).thenReturn(Observable.fromArray("message_1", "message_2", "message_3"));
    presenter.update();
    verify(view, times(3)).showUpdateMessage(anyString());
    verify(libraryController).init();
    verify(view).gotoReaderActivity();
}