@Test
public void testGetThesauriMap() throws Exception {

    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    int count = this.thesaurusManager.getThesauriMap().size();
    assertFalse(this.thesaurusManager.getThesauriMap().containsKey(AllThesaurus.ALL_THESAURUS_KEY));
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, true);
    assertTrue(this.thesaurusManager.getThesauriMap().containsKey(AllThesaurus.ALL_THESAURUS_KEY));
    assertEquals(count + 1, this.thesaurusManager.getThesauriMap().size());
    this.settingManager.setValue(Settings.SYSTEM_ENABLE_ALL_THESAURUS, false);
    assertFalse(this.thesaurusManager.getThesauriMap().containsKey(AllThesaurus.ALL_THESAURUS_KEY));
    assertEquals(count, this.thesaurusManager.getThesauriMap().size());
}