Adding test created for https://issues.jboss.org/browse/JBPAPP-10985
Merge pull request #1529 from clebertsuconic/master-fix

Adding test created for https://issues.jboss.org/browse/JBPAPP-10985