@Test
public void toPinyin_withOneDict() throws Exception {

    mPinyinDicts.add(new PinyinMapDict() {
        @Override
        public Map<String, String[]> mapping() {
            Map<String, String[]> map = new HashMap<String, String[]>();
            map.put("重庆", new String[]{"CHONG", "QING"});
            map.put("长安", new String[]{"CHANG", "AN"});
            map.put("四川", new String[]{"SI", "CHUAN"});
            return map;
        }
    });
    String result = Engine.toPinyin("重庆和长安都很棒!四川", dictsToTrie(mPinyinDicts), mPinyinDicts, ",", new ForwardLongestSelector());
    String expect = "CHONG,QING,HE,CHANG,AN,DOU,HEN,BANG,!,SI,CHUAN";
    assertThat(expect, is(result));
}