	@Test
	public void testSpamLog() {

		String line = "1`0`2`1`000000`3`20071009`11:35:41`Low`6`172.16.104.1`3748`211.48.62.132`110`3003``스팸 메일 차단`2`0`circleo@gmail.com`circleo@kornet.net`FW: 광고 ..테스트 메일`";
		Map<String, Object> m = new TrusGuardLogParser().parse(line(line));

		// check log header
		assertNotNull(m);
		assertEquals(1, m.get("version"));
		assertEquals(0, m.get("encrypt"));
		assertEquals(2, m.get("type"));
		assertEquals(1, m.get("count"));
		assertEquals("000000", m.get("utm_id"));

		// check log data
		assertEquals("Low", m.get("severity"));
		assertEquals(6, m.get("protocol"));
		assertEquals("172.16.104.1", m.get("src_ip"));
		assertEquals(3748, m.get("src_port"));
		assertEquals("211.48.62.132", m.get("dst_ip"));
		assertEquals(110, m.get("dst_port"));
		assertEquals("3003", m.get("action"));
		assertEquals("스팸 메일 차단", m.get("module_name"));
		assertEquals("2", m.get("spam_filter"));
		assertEquals("0", m.get("send_spam_log"));
		assertEquals("circleo@gmail.com", m.get("sender_addr"));
		assertEquals("circleo@kornet.net", m.get("recipients_addr"));
		assertEquals("FW: 광고 ..테스트 메일", m.get("subject"));
	}