<?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="aggregatorWithExpressionsAndPojoAggregatorInput"/>
	<aggregator id="aggregatorWithExpressionsAndPojoAggregator"
		input-channel="aggregatorWithExpressionsAndPojoAggregatorInput"
		ref="aggregatorBean"
		release-strategy="releaseStrategy"
		release-strategy-expression="size() == 2"
        correlation-strategy-expression="headers['foo']"/>

	<beans:bean id="aggregatorBean"
		class="org.springframework.integration.config.TestAggregatorBean" />

	<beans:bean id="releaseStrategy"
		class="org.springframework.integration.config.TestReleaseStrategy" />

</beans:beans>
