private void test() {
		//训练的文件格式是每行一个训练字符序列
		this.path = "./dict/train.txt";
		this.trie = new SuffixTrie();
		// 构建后缀树
		trie.build(path);
		
		//测试字符串出现的次数
		System.out.println("字符串A出现的次数: " + trie.getOccurences("A"));
		 
		//测试儿子节点的个数
		System.out.println(trie.getRoot().sizeOfChildren());
		 
		//测试是否构建了所有单词 没有递归测试子序列
		try {
			reader = new BufferedReader(new FileReader(new File(path)));			 
			String word = reader.readLine();
			while (word != null) { //未到文件末尾
			if (!word.trim().equals("")) { //非空行
				word += '$';
				System.out.println(trie.search(word));
			}
			word = reader.readLine();
			}
		} catch (Exception e) {
		 e.printStackTrace();
		}
	}