### Question:
TextHelper { @Nonnull @ReturnsMutableCopy public static MultilingualText getCopyWithLocales (@Nonnull final IMultilingualText aMLT, @Nonnull final Collection <Locale> aContentLocales) { final MultilingualText ret = new MultilingualText (); for (final Locale aConrentLocale : aContentLocales) if (aMLT.texts ().containsKey (aConrentLocale)) ret.setText (aConrentLocale, aMLT.getText (aConrentLocale)); 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 testGetCopyWithLocales () { final MultilingualText aMLT = new MultilingualText (); assertTrue (aMLT.setText (Locale.ENGLISH, "Hi").isChanged ()); assertTrue (aMLT.setText (Locale.GERMAN, "Moin").isChanged ()); assertEquals (2, aMLT.texts ().size ()); final ICommonsList <Locale> aLocaleList = new CommonsArrayList <> (); aLocaleList.add (Locale.ENGLISH); final MultilingualText aMLT2 = TextHelper.getCopyWithLocales (aMLT, aLocaleList); assertTrue (aMLT2.texts ().containsKey (Locale.ENGLISH)); assertFalse (aMLT2.texts ().containsKey (Locale.GERMAN)); assertTrue (aMLT.texts ().containsKey (Locale.ENGLISH)); assertTrue (aMLT.texts ().containsKey (Locale.GERMAN)); }