title: how to unit test spring integration dsl code
body: <p>i was unable to find an simple example to unit test the spring integration dsl, which involves picking up a message from queue and making a rest call.</p>
  
  <p>I looked at the examples <a href="https://github.com/spring-projects/spring-integration-java-dsl" rel="nofollow noreferrer">https://github.com/spring-projects/spring-integration-java-dsl</a> but was not clear on qualifiers etc for the below code for which i want to write unit test on.</p>
  
  <pre><code>    IntegrationFlows.from(Jms.inboundGateway(connectionFactory)
              .id("inputChannel")
              .destination(sourceQueue)
              .jmsMessageConverter(new MarshallingMessageConverter(jaxbMarshaller())))
              .something to validate and route
              .handle(Http.outboundGateway("http://localhost:9999/create)
                              .httpMethod(HttpMethod.POST)
                              .expectedResponseType(String.class))
              .get();
  </code></pre>