@Test public void testGatewayConfig() { Object edc = this.context.getBean("rabbitGateway"); assertFalse(TestUtils.getPropertyValue(edc, "autoStartup", Boolean.class)); AmqpOutboundEndpoint gateway = TestUtils.getPropertyValue(edc, "handler", AmqpOutboundEndpoint.class); assertEquals("amqp:outbound-gateway", gateway.getComponentType()); assertTrue(TestUtils.getPropertyValue(gateway, "requiresReply", Boolean.class)); checkGWProps(this.context, gateway); AsyncAmqpOutboundGateway async = this.context.getBean("asyncGateway.handler", AsyncAmqpOutboundGateway.class); assertEquals("amqp:outbound-async-gateway", async.getComponentType()); checkGWProps(this.context, async); assertSame(this.context.getBean("asyncTemplate"), TestUtils.getPropertyValue(async, "template")); assertSame(this.context.getBean("ems"), TestUtils.getPropertyValue(gateway, "errorMessageStrategy")); }