Refactor spring config test to unit test ConfigImpl