@Override
    public void configure(Binder binder) {
      binder.install(new FactoryModuleBuilder().build(UpgradeContextFactory.class));
      binder.bind(ConfigHelper.class).toInstance(m_configHelper);
      binder.bind(AgentConfigsHolder.class).toInstance(createNiceMock(AgentConfigsHolder.class));
    }
Mock the call to get JMX Values.
@param hostname host name
@param port port number
@param beanName if asQuery is false, then search for this bean name
@param attributeName if asQuery is false, then search for this attribute name
@param asQuery whether to search bean or query
@param encrypted true if using https instead of http.
@return
ambari-server/src/test/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeHelperTest.java