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

	<channel id="searchChannel"/>

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


	<twitter:search-inbound-channel-adapter id="searchAdapterWithTemplate"
						channel="searchChannel"
						twitter-template="twitter"
						page-size="23"
						query="#springintegration"
						auto-startup="false">
		<poller fixed-rate="5000" max-messages-per-poll="3"/>
	</twitter:search-inbound-channel-adapter>


</beans:beans>


