ScheduledTask snapshotTask = makeTask("snapshotTask", ScheduleStatus.ASSIGNED);
ScheduledTask transactionTask = makeTask("transactionTask", ScheduleStatus.RUNNING);
Iterable<Entry> recoveredEntries = toEntries(
LogEntry.snapshot(new Snapshot().setTasks(ImmutableSet.of(snapshotTask))),
LogEntry.transaction(new Transaction(
ImmutableList.of(Op.saveTasks(new SaveTasks(ImmutableSet.of(transactionTask)))),
storageConstants.CURRENT_SCHEMA_VERSION)));
expect(log.open()).andReturn(logStream);
expect(logStream.readAll()).andReturn(recoveredEntries.iterator()).anyTimes();