I am currently working on a functional test for a scenario in which a custom exception is thrown. The exception is handled by a listener in order to return a custom JSON res