extended testcase for 2946
add generic type
solved ticket https://issues.jboss.org/browse/RAILO-2946