@Test
public void testGetThesaurusByName() throws Exception {

    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    assertNull(this.thesaurusManager.getThesaurusByName(AllThesaurus.ALL_THESAURUS_KEY));
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, true);
    assertNotNull(this.thesaurusManager.getThesaurusByName(AllThesaurus.ALL_THESAURUS_KEY));
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    assertNull(this.thesaurusManager.getThesaurusByName(AllThesaurus.ALL_THESAURUS_KEY));
}