While I agree with the notes by other users that it seems wrong to be testing something that isn't public-facing, I do have some sympathy for the "I am not allowed to change implementation class" situation.
The @Resource annotation is designed to be used to have the application inject an instance at runtime. I would suggest you set up your tests with a context that is similar to that of your application at runtime. This way, this class will have its resource injected.
Failing that, you could probably use Reflection to set the value to the value you require.