How to use a mock object manager for your custom PHPUnit test?

You can also use the real object manager for your custom PHPUnit tests.