added testcase for 3097
https://issues.jboss.org/browse/RAILO-3097
Merge remote-tracking branch 'origin/4.2' into 4.2