Add test for https://issues.jboss.org/browse/SWITCHYARD-1732