@Test
public void testReloadAfterError() {

    when(service.loadItems())
            .thenThrow(new RuntimeException())
            .thenReturn(TestData.response());
    NoteListModel model = viewModel.initAndResume();
    assertThat(model.getError().get()).isTrue();
    viewModel.reloadData();
    assertThat(model.getError().get()).isFalse();
    assertThat(model.getItems()).hasSize(2);
}