Pinyin { public static void init(Config config) { if (config == null) { mPinyinDicts = null; mTrieDict = null; mSelector = null; return; } if (!config.valid()) { return; } mPinyinDicts = Collections.unmodifiableList(config.getPinyinDicts()); mTrieDict = Utils.dictsToTrie(config.getPinyinDicts()); mSelector = config.getSelector(); } private  Pinyin(); static void init(Config config); static void add(PinyinDict dict); static Config newConfig(); static String toPinyin(String str, String separator); static String toPinyin(String str, String separator, PinyinRules rules); static String toPinyin(char c); static String toPinyin(char c, PinyinRules rules); static boolean isChinese(char c);  }
@Test public void init_with_null() throws Exception { Pinyin.init(null); assertThat(Pinyin.mTrieDict, nullValue()); assertThat(Pinyin.mPinyinDicts, nullValue()); assertThat(Pinyin.mSelector, nullValue()); }