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

	<int:channel id="inputA"/>
	
	<int:header-enricher  input-channel="inputA" output-channel="outputA">
		<int:header name="TEST_HEADER">
            <int-groovy:script location="org/springframework/integration/groovy/config/GroovyHeaderEnricherTests.groovy"/>
        </int:header>
	</int:header-enricher>
	
	<int:channel id="outputA">
		<int:queue/>
	</int:channel>
	
	
	<int:channel id="inputB"/>
	
	<int:header-enricher id="headerEnricherWithInlineGroovyScript" input-channel="inputB" output-channel="outputB">
		<int:header name="TEST_HEADER">
            <int-groovy:script>
            	<![CDATA[
					return "groovy"
				]]>
            </int-groovy:script>
        </int:header>
	</int:header-enricher>
	
	<int:channel id="outputB">
		<int:queue/>
	</int:channel>

</beans>
