MockControl interactionControl = MockControl.createStrictControl(Interaction.class);
Interaction interaction = (Interaction) interactionControl.getMock();
MockControl generatorControl = MockControl.createStrictControl(RecordCreator.class);
RecordCreator generator = (RecordCreator) generatorControl.getMock();
MockControl extractorControl = MockControl.createStrictControl(RecordExtractor.class);
RecordExtractor extractor = (RecordExtractor) extractorControl.getMock();
MockControl creatorControl = MockControl.createStrictControl(RecordCreator.class);
RecordCreator creator = (RecordCreator) creatorControl.getMock();
MockControl inputRecordControl = MockControl.createStrictControl(Record.class);
Record inputRecord = (Record) inputRecordControl.getMock();
MockControl outputRecordControl = MockControl.createStrictControl(Record.class);
Record outputRecord = (Record) outputRecordControl.getMock();
MockControl interactionSpecControl = MockControl.createStrictControl(InteractionSpec.class);
InteractionSpec interactionSpec = (InteractionSpec) interactionSpecControl.getMock();
Object obj = new Object();
connectionFactory.getRecordFactory();
connectionFactoryControl.setReturnValue(recordFactory, 1);
connectionFactory.getConnection();
connectionFactoryControl.setReturnValue(connection);
connection.createInteraction();
connectionControl.setReturnValue(interaction);
creator.createRecord(recordFactory);
creatorControl.setReturnValue(outputRecord);
connectionFactory.getRecordFactory();
connectionFactoryControl.setReturnValue(recordFactory, 1);
generator.createRecord(recordFactory);
generatorControl.setReturnValue(inputRecord);
interaction.execute(interactionSpec, inputRecord, outputRecord);
interactionControl.setReturnValue(true, 1);
extractor.extractData(outputRecord);
extractorControl.setReturnValue(obj);
interaction.close();
interactionControl.setVoidCallable(1);