JResponseJsonTest::testFailureWithException

Tests a response indicating an error where an exception is passed into the object in order to set 'success' to false.

The message of the exception is automatically sent back in 'message'.