### Question:
MediaWikiUtil { static String replaceLangPattern(String text) { return LANG_PATTERN.matcher(text).replaceAll("$1"); } private  MediaWikiUtil(); static String stripMediaWikiMarkup(String markup); static String extractSentences(String text); static final WikiPage retrieveArticle(MediaWikiDescriptor descriptor, String title); static final List<WikiPageReference> retrieveArticlesForCategory(MediaWikiDescriptor descriptor,
            String categoryName); static final WikiPageReference retrieveRandomArticle(MediaWikiDescriptor descriptor); static final List<WikiPageReference> retrieveBacklinks(MediaWikiDescriptor descriptor, String pageName); static WikiTemplate extractTemplate(String markup); static List<String> getNamedMarkup(String markup, String... names); static void parseDump(File wikipediaDump, Consumer<WikiPage> action, ProgressReporter progress); static void parseDump(File wikipediaDump, Consumer<WikiPage> action); static void parseDump(InputStream inputStream, Consumer<WikiPage> action); static void main(String[] args); static final Pattern HEADING_PATTERN; static final Pattern INTERNAL_LINK_PATTERN; static final Pattern REDIRECT_PATTERN; }### Answer:
@Test public void testRemoveLang() { assertEquals("She said: \"''Je suis française.''\"", MediaWikiUtil.replaceLangPattern("She said: \"''{{lang|fr|Je suis française.}}''\"")); assertEquals("español", MediaWikiUtil.replaceLangPattern("{{lang-es|español}}")); }