Replace spring bean in one context with mock version from another context Replace spring bean in one context with mock version from another context spring spring