/**
* Test that a subclass of AMQException that has the default constructor will be correctly created and rethrown.
*/
public void testRethrowAMQESubclass()
{
AMQFrameDecodingException test = new AMQFrameDecodingException(AMQConstant.INTERNAL_ERROR,
"Error",
new Exception());
AMQException e = reThrowException(test);
assertEquals("Exception not of correct class", AMQFrameDecodingException.class, e.getClass());