refactor AmbariImpl test class.
refactor AmbariImpl test class.