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

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

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

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

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

	<filter input-channel="simpleInput" expression="payload > 0" output-channel="positives" discard-channel="negatives"/>

	<filter input-channel="beanResolvingInput" expression="@testBean.isEven(payload)" output-channel="evens" discard-channel="odds"/>

	<beans:bean id="testBean" class="org.springframework.integration.filter.SpelFilterIntegrationTests$TestBean"/>

</beans:beans>
