public void testAvailableIdentification() 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();
replay(configurationHandler);
IdentificationHandler identificationHandler = m_agentContext.getHandler(IdentificationHandler.class);
assertEquals(identificationHandler.getAgentId(), "qqq");
}
|