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

	<beans:bean id="testConnection" class="org.mockito.Mockito" factory-method="mock">
		<beans:constructor-arg value="org.jivesoftware.smack.XMPPConnection"/>
	</beans:bean>

	<channel id="xmppInbound">
		<queue/>
	</channel>

	<xmpp:inbound-channel-adapter id="xmppInboundAdapter" channel="xmppInbound"
			xmpp-connection="testConnection" extract-payload="false"
			auto-startup="false" error-channel="errorChannel"
			mapped-request-headers="foo*, xmpp*"/>

	<xmpp:inbound-channel-adapter id="autoChannel"
			xmpp-connection="testConnection" extract-payload="false"
			auto-startup="false" error-channel="errorChannel"
			mapped-request-headers="foo*, xmpp*"/>

	<bridge input-channel="autoChannel" output-channel="nullChannel" />

</beans:beans>
