console1.shutdown();
}
@Test
public void testStartAgentAndTest() throws InterruptedException, PersistenceException {
AgentConfig agentConfig1 = Mockito.spy(agentConfig);
AgentDaemon agent = new AgentDaemon(agentConfig1);
URL scriptUrl = this.getClass().getResource("/grinder.properties");
File scriptFile = new File(scriptUrl.getFile());
GrinderProperties properties = new GrinderProperties(scriptFile);
agent.run(properties);