assertEquals(identificationHandler.getAgentId(), "qqq");
}
@Test
public void testUpdatedIdentification() throws Exception {
ConfigurationHandler configurationHandler = m_agentContext.getHandler(ConfigurationHandler.class);
reset(configurationHandler);
expect(configurationHandler.get(eq(AgentConstants.CONFIG_IDENTIFICATION_AGENTID), anyObject(String.class)))
.andReturn("qqq").once();
expect(configurationHandler.get(eq(AgentConstants.CONFIG_IDENTIFICATION_AGENTID), anyObject(String.class)))
.andReturn("yyy").once();
replay(configurationHandler);
IdentificationHandler identificationHandler = m_agentContext.getHandler(IdentificationHandler.class);
assertEquals(identificationHandler.getAgentId(), "qqq");
assertEquals(identificationHandler.getAgentId(), "yyy");