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