### Question:
TranslationMap { @Override public String toString() { return translations.toString(); }  static int countOccurence(String phrase, String splitter); TranslationMap doImport(File folder); TranslationMap doImport(); void add(Translation tr); Translation getWithFallBack(Locale locale); Translation get(String locale); @Override String toString();  }### Answer:
@Test public void testToString() { Translation enMap = SINGLETON.getWithFallBack(Locale.UK); assertEquals("continue onto blp street", enMap.tr("continue_onto", "blp street")); Translation trMap = SINGLETON.getWithFallBack(Locale.GERMANY); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); Translation ruMap = SINGLETON.getWithFallBack(new Locale("ru")); assertEquals("Пешком", ruMap.tr("web.FOOT")); Translation zhMap = SINGLETON.getWithFallBack(new Locale("vi", "VI")); assertEquals("Đi bộ", zhMap.tr("web.FOOT")); trMap = SINGLETON.get("de_DE"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("de"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("de_AT"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("he"); assertEquals("רגל", trMap.tr("web.FOOT")); trMap = SINGLETON.get("iw"); assertEquals("רגל", trMap.tr("web.FOOT")); }
@Test public void testToString() { Translation enMap = SINGLETON.getWithFallBack(Locale.UK); assertEquals("continue onto blp street", enMap.tr("continue_onto", "blp street")); Translation trMap = SINGLETON.getWithFallBack(Locale.GERMANY); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); Translation ruMap = SINGLETON.getWithFallBack(new Locale("ru")); assertEquals("Пешком", ruMap.tr("web.FOOT")); Translation zhMap = SINGLETON.getWithFallBack(new Locale("vi", "VI")); assertEquals("Đi bộ", zhMap.tr("web.FOOT")); trMap = SINGLETON.get("de_DE"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("de"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("de_AT"); assertEquals("Zu Fuß", trMap.tr("web.FOOT")); trMap = SINGLETON.get("he"); assertEquals("רגל", trMap.tr("web.FOOT")); trMap = SINGLETON.get("iw"); assertEquals("רגל", trMap.tr("web.FOOT")); assertEquals("in", SINGLETON.get("in").getLanguage()); assertEquals("in", SINGLETON.get("in_ID").getLanguage()); assertEquals("vi", SINGLETON.get("vi").getLanguage()); assertEquals("vi", SINGLETON.get("vi_VN").getLanguage()); }