// configuration is always set first
workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);
// expect the initialize call and return the mock instance id
workflow.initialize(WAKE_UP, initialAction, inputs);
control.setReturnValue(MOCK_INSTANCE_ID);
control.replay();
return workflow;
}