@Test
public void testReloadAfterError() {

    when(noteLoader.load(anyString()))
            .thenThrow(TestData.networkError())
            .thenReturn(TestData.noteA());
    NoteModel model = viewModel.initAndResume(TestData.ID_A);
    assertThat(model.getError().get()).isTrue();
    viewModel.reloadData();
    assertThat(model.getError().get()).isFalse();
    assertThat(model.getTitle().get()).isEqualTo(TestData.TITLE_A);
}