LanguageRegistry { public static Language getDefaultLanguage() { Language defaultLanguage = getLanguage("Java"); if (defaultLanguage == null) { Collection<Language> allLanguages = getInstance().languages.values(); if (!allLanguages.isEmpty()) { defaultLanguage = allLanguages.iterator().next(); } } return defaultLanguage; } private  LanguageRegistry(); @Deprecated static LanguageRegistry getInstance(); static Collection<Language> getLanguages(); static Language getLanguage(String languageName); static Language getDefaultLanguage(); static Language findLanguageByTerseName(String terseName); @Deprecated static LanguageVersion findLanguageVersionByTerseName(String terseNameAndVersion); static List<Language> findByExtension(String extension); @Deprecated static List<LanguageVersion> findAllVersions(); @Deprecated static List<Language> findWithRuleSupport(); @Deprecated static String commaSeparatedTerseNamesForLanguage(List<Language> languages); @Deprecated static String commaSeparatedTerseNamesForLanguageVersion(List<LanguageVersion> languageVersions);  }
@Test public void getDefaultLanguageTest() { Language defaultLanguage = LanguageRegistry.getDefaultLanguage(); Assert.assertNotNull(defaultLanguage); Assert.assertSame(DummyLanguageModule.class, defaultLanguage.getClass()); }