How to test background jobs?

When a model gets created, it requires some processing handled by a background job. How can I test it in such case?