@Test
public void test_agentmain_set_toFile() throws Exception {

    DcmAgent.agentmain("set baidu.com 1.2.3.4 file " + outputFilePath);
    assertEquals("1.2.3.4", DnsCacheManipulator.getDnsCache("baidu.com").getIp());
    final List<String> content = FileUtils.readLines(outputFile);
    assertEquals(DcmAgent.DCM_AGENT_SUCCESS_MARK_LINE, content.get(content.size() - 1));
}