Unit test for JBMDR-75

Unit test demonstrating the ClassCastException as explained in the issue created here:
https://issues.jboss.org/browse/JBMDR-75