Record inputRecord = (Record) inputRecordControl.getMock();
MockControl outputRecordControl = MockControl.createControl(Record.class);
Record outputRecord = (Record) outputRecordControl.getMock();
MockControl interactionSpecControl = MockControl.createControl(InteractionSpec.class);
InteractionSpec interactionSpec = (InteractionSpec) interactionSpecControl.getMock();
SimpleRecordOperation operation = new SimpleRecordOperation(connectionFactory, interactionSpec);
connectionFactory.getConnection();
connectionFactoryControl.setReturnValue(connection, 1);