public synchronized DictionaryAddOnAndBuilder getDictionaryBuilderByLocale(String locale) {
    if (mBuildersByLocale.size() == 0) loadAddOns();

    return mBuildersByLocale.get(locale);
  }
@Test
  public void testGetByLocale() {
    DictionaryAddOnAndBuilder enBuilder = mFactory.getDictionaryBuilderByLocale("en");
    Assert.assertNotNull(enBuilder);
    Assert.assertEquals("en", enBuilder.getLanguage());

    DictionaryAddOnAndBuilder nullBuilder = mFactory.getDictionaryBuilderByLocale("none");
    Assert.assertNull(nullBuilder);
  }