### Question:
I18nManager extends AbstractService implements II18nManager { @Override public String getLabel(String key, String langCode) { String label = null; ApsProperties labelsProp = this.getCacheWrapper().getLabelGroup(key); if (labelsProp != null) { label = labelsProp.getProperty(langCode); } return label; }  void setI18nDAO(II18nDAO i18nDao); void setLangManager(ILangManager langManager); void setCacheWrapper(II18nManagerCacheWrapper cacheWrapper); @Override void init(); @Override Map<String, ApsProperties> getLabelGroups(); @Override String renderLabel(String key, String renderingLang,
            boolean keyIfEmpty); @Override String renderLabel(String key, String renderingLang,
            boolean keyIfEmpty, Map<String, String> params); @Override String getLabel(String key, String langCode); @Override ApsProperties getLabelGroup(String key); @Override void addLabelGroup(String key, ApsProperties labels); @Override void deleteLabelGroup(String key); @Override void updateLabelGroup(String key, ApsProperties labels); @Override List<String> searchLabelsKey(String insertedText, boolean doSearchByKey,
            boolean doSearchByLang, String langCode);  }### Answer:
@Test public void testGetLabel() throws Throwable { when(cacheWrapper.getLabelGroup("TEST")).thenReturn(createLabel("IT Test", "EN Test")); String label = this.i18nManager.getLabel("TEST", "it"); assertNotNull(label); assertEquals(label, "IT Test"); label = i18nManager.getLabel("not-exists", "it"); assertNull(label); }