Fix NPE while running application integration tests
Merge pull request #38 from pinhead/master

Directly use the plugin manager reference instead of accessing it through the application context