### Question:
TextHelper { @Nonnull @ReturnsMutableCopy public static MultilingualText createMultilingualTextFromMap (@Nonnull final Map <String, String> aMap) { ValueEnforcer.notNull (aMap, "Map"); final MultilingualText ret = new MultilingualText (); final LocaleCache aLC = LocaleCache.getInstance (); for (final Map.Entry <String, String> aEntry : aMap.entrySet ()) { final String sText = aEntry.getValue (); if (sText != null) ret.setText (aLC.getLocale (aEntry.getKey ()), sText); } return ret; } private  TextHelper(); @Nullable static String getFormattedText(@Nullable final String sText, @Nullable final Object... aArgs); @Nullable static String getFormattedText(@Nonnull final Locale aDisplayLocale,
                                         @Nullable final String sText,
                                         @Nullable final Object... aArgs); @Nonnull @ReturnsMutableCopy static MultilingualText create_DE(@Nonnull final String sDE); @Nonnull @ReturnsMutableCopy static MultilingualText create_EN(@Nonnull final String sEN); @Nonnull @ReturnsMutableCopy static MultilingualText create_DE_EN(@Nonnull final String sDE, @Nonnull final String sEN); @Nonnull @ReturnsMutableCopy static MultilingualText getCopyWithLocales(@Nonnull final IMultilingualText aMLT,
                                                     @Nonnull final Collection <Locale> aContentLocales); @Nonnull @ReturnsMutableCopy static MultilingualText createMultilingualTextFromMap(@Nonnull final Map <String, String> aMap); static final Locale DE; static final Locale EN; }### Answer:
@Test public void testCreateMultilingualTextFromMap () { final ICommonsMap <String, String> aParamNames = new CommonsHashMap <> (); IMultilingualText aMLT = TextHelper.createMultilingualTextFromMap (aParamNames); assertEquals (0, aMLT.texts ().size ()); aParamNames.put ("de", "x"); aParamNames.put ("en", "y"); aMLT = TextHelper.createMultilingualTextFromMap (aParamNames); assertEquals (2, aMLT.texts ().size ()); assertEquals ("x", aMLT.getText (L_DE)); assertEquals ("y", aMLT.getText (L_EN)); }