@Test
public void testValidation() {

    NoteModel model = viewModel.initAndResume(TestData.ID_A);
    model.getTitle().set("");
    model.getText().set("");
    viewModel.save();
    assertThat(model.getTitleError().get()).isEqualTo(R.string.mandatory_field);
    assertThat(model.getTextError().get()).isEqualTo(R.string.mandatory_field);
    verify(noteSaver, never()).save(anyString(), any(Note.class));
    verify(messageManager, never()).showMessage(any(ActivityHolder.class), anyInt());
}