Inject mock application into class