@Test
public void testRegistrationAgentConfig() throws Exception,
    InvalidStateTransitionException {

  ActionManager am = actionManagerTestHelper.getMockActionManager();
  replay(am);
  Clusters fsm = clusters;
  HeartBeatHandler handler = new HeartBeatHandler(fsm, new ActionQueue(), am,
                                                  injector);
  clusters.addHost(DummyHostname1);
  Host hostObject = clusters.getHost(DummyHostname1);
  hostObject.setIPv4("ipv4");
  hostObject.setIPv6("ipv6");
  Register reg = new Register();
  HostInfo hi = new HostInfo();
  hi.setHostName(DummyHostname1);
  hi.setOS(DummyOsType);
  reg.setHostname(DummyHostname1);
  reg.setCurrentPingPort(DummyCurrentPingPort);
  reg.setHardwareProfile(hi);
  reg.setAgentVersion(metaInfo.getServerVersion());
  reg.setPrefix(Configuration.PREFIX_DIR);
  RegistrationResponse rr = handler.handleRegistration(reg);
  Map<String, String> config = rr.getAgentConfig();
  assertFalse(config.isEmpty());
  assertTrue(config.containsKey(Configuration.CHECK_REMOTE_MOUNTS.getKey()));
  assertTrue("false".equals(config.get(Configuration.CHECK_REMOTE_MOUNTS.getKey())));
  assertTrue(config.containsKey(Configuration.CHECK_MOUNTS_TIMEOUT.getKey()));
  assertTrue("0".equals(config.get(Configuration.CHECK_MOUNTS_TIMEOUT.getKey())));
  assertTrue("true".equals(config.get(Configuration.ENABLE_AUTO_AGENT_CACHE_UPDATE.getKey())));
}