});
Entry entry1 = createMock(Entry.class);
Entry entry2 = createMock(Entry.class);
String frameworkId1 = "bob";
LogEntry recoveredEntry1 =
createTransaction(Op.saveFrameworkId(new SaveFrameworkId(frameworkId1)));
String frameworkId2 = "jim";
LogEntry recoveredEntry2 =
createTransaction(Op.saveFrameworkId(new SaveFrameworkId(frameworkId2)));
expect(entry1.contents()).andReturn(ThriftBinaryCodec.encodeNonNull(recoveredEntry1));
expect(entry2.contents()).andReturn(ThriftBinaryCodec.encodeNonNull(recoveredEntry2));
expect(stream.readAll()).andReturn(Iterators.forArray(entry1, entry2));