Can a test helper resolve a service?

I’m writing a test helper to inject dummy data into a security service (which roles does this user have).

Is it possible for the test helper to access my security service on the current application container? Or do I have to pass application in the helper function call every time?