The unit test should be done when testing the Application class, not in a random test class.