@Test
	public void testAgentConfigInitialization() throws IOException {
		// Given
		AgentConfig config = new AgentConfig();
		config.init();
		File homeDir = config.getHome().getDirectory();
		// When
		config.saveAgentPidProperties("1000", "agent");
		String pid = config.getAgentPidProperties("agent");
		// Then
		assertThat(pid).isEqualTo("1000");

		//  When
		config.saveAgentPidProperties("1001", "monitor");
		String monitorPid = config.getAgentPidProperties("monitor");

		// Then
		assertThat(monitorPid).isEqualTo("1001");
		assertThat(config.isDevMode()).isEqualTo(false);

		// When
		System.setProperty("ngrinder.agent.home", "./tmp_agent_home");
		config.init();
		// Then
		homeDir = config.getHome().getDirectory();
		assertThat(homeDir.getAbsolutePath()).contains(File.separator + "tmp_agent_home");
		FileUtils.deleteDirectory(homeDir);
		System.setProperty("ngrinder.agent.home", "");

	}
Test method for {@link org.ngrinder.infra.AgentConfig#init()}.

@throws IOException
ngrinder-core/src/test/java/org/ngrinder/infra/AgentConfigTest.java