Hi, say I got a service A, which has a @Reference private B b;
Now I want to write a unit test and mock B, how can I inject the mocked
dependency?
Only reasonable thing I found so far is to have a static factory method on A,
public static A forTesting(B b) { … }
Thanks,
Kostas

