private Dictionary getDictionaryByFieldType(String fieldTypeName) {
FieldType ft = h.getCore().getLatestSchema().getFieldTypeByName(fieldTypeName);
Analyzer a = ft.getAnalyzer();
Assert.assertEquals(a.getClass(), TokenizerChain.class);
TokenizerChain tc = (TokenizerChain) a;
TokenizerFactory tf = tc.getTokenizerFactory();
Assert.assertEquals(tf.getClass(), MMSegTokenizerFactory.class);
MMSegTokenizerFactory mtf = (MMSegTokenizerFactory) tf;
Assert.assertNotNull(mtf.dic);