public void testTemplateExecuteInputTrueTrue() throws ResourceException {
MockControl connectionFactoryControl = MockControl.createStrictControl(ConnectionFactory.class);
ConnectionFactory connectionFactory = (ConnectionFactory) connectionFactoryControl.getMock();
MockControl connectionControl = MockControl.createStrictControl(Connection.class);
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, inputOutputRecord);
interactionControl.setReturnValue(true, 1);
interaction.close();
interactionControl.setVoidCallable(1);
connection.close();
connectionControl.setVoidCallable(1);
connectionFactoryControl.replay();
connectionControl.replay();
interactionControl.replay();