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

	<bean id="clientRSocketConnector" class="org.springframework.integration.rsocket.ClientRSocketConnector">
		<constructor-arg value="https://example.com"/>
		<property name="autoStartup" value="false"/>
	</bean>

	<bean id="rsocketStrategies" class="org.mockito.Mockito" factory-method="mock">
		<constructor-arg value="org.springframework.messaging.rsocket.RSocketStrategies"
						 type="java.lang.Class"/>
	</bean>

	<int:channel id="requestChannel"/>

	<int-rsocket:inbound-gateway id="inboundGateway"
								 path="testPath"
								 interaction-models="fireAndForget,requestChannel"
								 rsocket-connector="clientRSocketConnector"
								 auto-startup="false"
								 request-channel="requestChannel"
								 rsocket-strategies="rsocketStrategies"
								 request-element-type="byte[]"
								 decode-flux-as-unit="true"/>

</beans>
