@Ignore
	@Test
	public void testACPatternMatcher() {
		Trie<Character, String> trie = new Trie<Character, String>();
		List<Character> elements = new ArrayList<Character>();
		String[] lines = {"He", "中国人", "中国国旗", "亮相月球", "亮相地球","亮相" ,"地球","中国","US","say"};
		for (String line : lines) {
			for (char c : line.toCharArray()) {
				elements.add(c);
			}
			trie.add(elements, line);
			elements.clear();
		}

		trie.print();

		ACPatternsMatcher<Character, String> matcher = new ACPatternsMatcher<Character, String>(
				trie);
		String line = "中国国旗首次首次亮相月球中国人自豪地球人发来贺电USsayHe";
		List<Character> pattern = new ArrayList<Character>();
		for (char c : line.toCharArray()) {
			pattern.add(c);
		}
		matcher.Query(pattern);
		Assert.assertEquals(10, matcher.getOutput().size());
		for (String value : matcher.getOutput()) {
			System.out.println(value);
		}

	}