@Test
public void testSaveData() {

    NoteModel model = viewModel.initAndResume(TestData.ID_A);
    model.getTitle().set(TestData.NEW_TITLE);
    model.getText().set(TestData.NEW_TEXT);
    viewModel.save();
    verify(noteSaver).save(eq(TestData.ID_A), captor.capture());
    assertThat(captor.getValue())
            .isEqualToComparingFieldByField(new Note(null, TestData.NEW_TITLE, TestData.NEW_TEXT));
    verify(messageManager).showMessage(any(ActivityHolder.class), eq(R.string.note_saved));
}