JERSEY-2449 Let Spring resolve beans using AutowireCapableBeanFactory, instead of handling various bean types manually. Adding test to verify that beans can be autowired.