<?xml version="1.0" encoding="UTF-8"?>
<beans:beans
	xmlns="http://www.springframework.org/schema/integration/http"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:si="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="http://www.springframework.org/schema/integration/http https://www.springframework.org/schema/integration/http/spring-integration-http.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

	<si:chain id="chain" input-channel="httpOutboundChannelAdapterWithinChain">
		<outbound-channel-adapter id="adapter" url="http://localhost/test1/%2f" rest-template="restTemplate"
			trusted-spel="true" />
	</si:chain>

	<beans:bean id="restTemplate"
				class="org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandlerTests$MockRestTemplate2"/>

	<si:chain input-channel="httpOutboundGatewayWithinChain" output-channel="replyChannel">
		<outbound-gateway url="http://localhost:51235/%2f/testApps?param={param}"
						  rest-template="restTemplate"
						  trusted-spel="true"
						  expected-response-type-expression="T (org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandlerTests).testParameterizedTypeReference()">
			<uri-variable name="param" expression="T(java.net.URLEncoder).encode('http Outbound Gateway Within Chain', 'UTF-8')"/>
						  </outbound-gateway>
	</si:chain>

	<si:channel id="replyChannel">
		<si:queue/>
	</si:channel>

</beans:beans>
