CLOUDIFY-1722 Refactored MockAgentConfig to use spring