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);
final InputStreamMock mockBufferInput = new InputStreamMock(
"mockBufferInput", expectations);
final OutputStreamMock mockBufferOutput = new OutputStreamMock(
"mockBufferOutput", expectations);