I did as you suggested and in the beforeEach() added:context.registerInjectActivateService(new SearchService(), "prop1", "value1");The SearchService() has itself two @reference annotations. @Referenceprivate ResourceResolverService resourceResolverService;@Referenceprivate GeocodingService geocodin...