<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:amqp="http://www.springframework.org/schema/integration/amqp"
	   xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp https://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

	<bean id="rabbitConnectionFactory" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.springframework.amqp.rabbit.connection.ConnectionFactory" type="java.lang.Class"/>
	</bean>

	<amqp:channel id="channelWithInterceptor"
				  auto-startup="false">
		<amqp:interceptors>
			<bean class="org.springframework.integration.amqp.config.AmqpChannelParserTests$TestInterceptor"/>
		</amqp:interceptors>
	</amqp:channel>

	<amqp:channel id="channelWithSubscriberLimit" max-subscribers="1" missing-queues-fatal="false"
				  template-channel-transacted="true" consumers-per-queue="2"
				  recovery-interval="0"
				  auto-startup="false"
				  shutdown-timeout="0"/>

	<amqp:publish-subscribe-channel id="pubSub"
									recovery-interval="0"
									auto-startup="false"
									shutdown-timeout="0"/>

	<amqp:channel id="withEP" extract-payload="true" default-delivery-mode="NON_PERSISTENT"
				  inbound-header-mapper="inMapper" outbound-header-mapper="outMapper"
				  recovery-interval="0"
				  auto-startup="false"
				  shutdown-timeout="0"/>

	<amqp:channel id="pollableWithEP" extract-payload="true" message-driven="false"
				  headers-last="true"
				  inbound-header-mapper="inMapper" outbound-header-mapper="outMapper"
				  recovery-interval="0"
				  auto-startup="false"
				  shutdown-timeout="0"/>

	<amqp:publish-subscribe-channel id="pubSubWithEP" extract-payload="true"
									inbound-header-mapper="inMapper" outbound-header-mapper="outMapper"
									recovery-interval="0"
									auto-startup="false"
									shutdown-timeout="0"/>

	<bean id="inMapper" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.springframework.integration.amqp.support.AmqpHeaderMapper" type="java.lang.Class"/>
	</bean>

	<bean id="outMapper" parent="inMapper"/>

</beans>
