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

	<bean id="testConnection" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.jivesoftware.smack.XMPPConnection" type="java.lang.Class"/>
	</bean>

	<int-xmpp:presence-inbound-channel-adapter channel="outChannel"
					xmpp-connection="testConnection" auto-startup="false"/>

	<int:channel id="outChannel"/>

</beans>
