@Test
public void upgradeFrom0To1_rollback_keeps_going_if_rollback_fails_then_throw() throws Exception {
minimaDb = spy(new DbHelper(db));
Entry[] entries = new Entry[] {
new Entry("story0", 0, new Note("desc1","todo", 65536, false).toJson()),
new Entry("story1", 1, new Note("desc1","todo", 65536, false).toJson()),
new Entry("story2", 2, new Note("desc1","todo", 65536, false).toJson())
};
doAnswer(listFound(entries)).when(db).list(any(List.class));
doThrow(new Exception()).when(minimaDb).upgradeEntry(entries[1]);
doThrow(new Exception()).when(minimaDb).rollbackUpgradeEntry(entries[0]);