Connection connection = (Connection) connectionControl.getMock();
MockControl interactionControl = MockControl.createStrictControl(Interaction.class);
Interaction interaction = (Interaction) interactionControl.getMock();
MockControl inputOutputRecordControl = MockControl.createStrictControl(Record.class);
Record inputOutputRecord = (Record) inputOutputRecordControl.getMock();
MockControl interactionSpecControl = MockControl.createStrictControl(InteractionSpec.class);
InteractionSpec interactionSpec = (InteractionSpec) interactionSpecControl.getMock();
connectionFactory.getConnection();
connectionFactoryControl.setReturnValue(connection);
connection.createInteraction();
connectionControl.setReturnValue(interaction);
interaction.execute(interactionSpec, inputOutputRecord);
interactionControl.setReturnValue(null, 1);
interaction.close();
interactionControl.setVoidCallable(1);
connection.close();
connectionControl.setVoidCallable(1);
connectionFactoryControl.replay();
connectionControl.replay();
interactionControl.replay();
CciTemplate ct = new CciTemplate(connectionFactory);
Record tmpOutputRecord = (Record) ct.execute(interactionSpec, inputOutputRecord);
assertNull(tmpOutputRecord);
connectionFactoryControl.verify();
connectionControl.verify();
interactionControl.verify();