@Test
public void toPinyin_null_map_return_null() throws Exception {

    PinyinMapDict dict = new PinyinMapDict() {
        @Override
        public Map<String, String[]> mapping() {
            return null;
        }
    };
    assertThat(dict.toPinyin("1"), nullValue());
}