ApplicationTestingTest hooksTest hooks Hooks run a test's own code at the moment a subscription is called or a message is published.