LanguageFactory { public static Language createLanguage(String language) { return createLanguage(language, new Properties()); } private  LanguageFactory(); static Language createLanguage(String language); static Language createLanguage(String language, Properties properties); static final String EXTENSION; static final String BY_EXTENSION; static String[] supportedLanguages; }
@Test public void testSimple() { assertTrue(LanguageFactory.createLanguage("Cpddummy") instanceof CpddummyLanguage); assertTrue(LanguageFactory.createLanguage("not_existing_language") instanceof AnyLanguage); }