@Test
public void testExistsThesaurus() throws Exception {

    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    assertFalse(this.thesaurusManager.existsThesaurus(AllThesaurus.ALL_THESAURUS_KEY));
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, true);
    assertTrue(this.thesaurusManager.existsThesaurus(AllThesaurus.ALL_THESAURUS_KEY));
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    assertFalse(this.thesaurusManager.existsThesaurus(AllThesaurus.ALL_THESAURUS_KEY));
}