// identifier.
final MatchMock mockMatch = new MatchMock("match", expectations);
// Create a mock step sequence that the mock match will return.
final IteratorMock mockIterator = new IteratorMock("iterator", expectations);
final StepMock mockStep1 = new StepMock("step1", expectations);
final StepMock mockStep2 = new StepMock("step2", expectations);
// Create a mock stream buffer and associated buffer streams that the
// resource migrator will use to copy from step 1 to step 2.
final StreamBufferMock mockStreamBuffer = new StreamBufferMock(
"streamBuffer", expectations);