<?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:int-twitter="http://www.springframework.org/schema/integration/twitter"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/twitter https://www.springframework.org/schema/integration/twitter/spring-integration-social-twitter.xsd">

	<bean id="tt" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.springframework.social.twitter.api.Twitter" />
	</bean>

	<int-twitter:outbound-channel-adapter id="in1" twitter-template="tt" />

	<int-twitter:outbound-channel-adapter
		id="in2"
		twitter-template="tt"
		tweet-data-expression="new TweetData(payload.foo).withMedia(headers.media)"/>

</beans>
