SWITCHYARD-1498 fix exception when creating tests for ESB interfaces

https://issues.jboss.org/browse/SWITCHYARD-1498