    @Test
    public void saveNewNoteToRepository_finishesActivity() {

        String noteNote = defaultNote.getNote();
        String linkId = defaultNote.getLinkId();
        List<Tag> noteTags = defaultNote.getTags();
        when(repository.saveNote(any(Note.class), eq(false)))
                .thenReturn(Observable.just(DataSource.ItemState.DEFERRED));

        presenter.saveNote(noteNote, noteTags);
        verify(repository, never()).refreshNotes();
        verify(view).finishActivity(any(String.class), eq(linkId));
    }