expect(configurationHandler.get(notNull(String.class), anyObject(String.class))).andReturn(null).anyTimes();
DeploymentAdmin deploymentAdmin = addTestMock(DeploymentAdmin.class);
expect(deploymentAdmin.listDeploymentPackages()).andReturn(
new DeploymentPackage[] { deploymentPackage2, deploymentPackage1 }).anyTimes();
expect(deploymentAdmin.installDeploymentPackage(notNull(InputStream.class)
)).andReturn(deploymentPackage3).once();
m_agentContext = mockAgentContext();
m_agentContext.setHandler(IdentificationHandler.class, identificationHandler);
m_agentContext.setHandler(DiscoveryHandler.class, discoveryHandler);