I am trying to inject some objects into my rest api before testing it. This is the method of my rest controller that should get an object by id:
@RestControll