// Make one agent connect to console1
GrinderProperties grinderProperties = new GrinderProperties();
grinderProperties.setInt(GrinderProperties.CONSOLE_PORT, console1.getConsolePort());
String localHostAddress = NetworkUtils.getLocalHostAddress();
grinderProperties.setProperty(GrinderProperties.CONSOLE_HOST, localHostAddress);
AgentIdentity next = getAgentIdentity(allAvailableAgents, 0);
agentControllerServerDaemon.startAgent(grinderProperties, next);
sleep(2000);
assertThat(console1.getAllAttachedAgents().size(), is(1));
// Shutdown agent controller and see agent is detached as well