*
* @throws InterruptedException - if we are unable to wait for the test signals
*/
public void testFrameListenerUpdateWithAMQException() throws InterruptedException
{
AMQException trigger = new AMQAuthenticationException(AMQConstant.ACCESS_REFUSED,
"AMQPHTest", new RuntimeException());
performWithException(trigger);
AMQException receivedException = (AMQException) _listener.getReceivedException();
assertEquals("Return exception was not the expected type",
AMQAuthenticationException.class, receivedException.getClass());
assertEquals("The _Listener did not receive the correct error code",
trigger.getErrorCode(), receivedException.getErrorCode());
}