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

	<!--  INT-2800 -->

	<mail:inbound-channel-adapter id="pop3WithSearch" channel="testChannel" protocol="pop3"
								  should-delete-messages="false" auto-startup="false"
								  search-term-strategy="searchTermStrategy"/>

	<bean id="searchTermStrategy" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.springframework.integration.mail.SearchTermStrategy" type="java.lang.Class"/>
	</bean>

	<!-- COMMON CONFIGURATION -->

	<si:channel id="testChannel"/>

	<si:poller default="true" max-messages-per-poll="1" fixed-rate="60000"/>

</beans>
