WunderBoss { public static void registerLanguage(String languageName, Language language) { language.initialize(); languages.put(languageName, language); } private  WunderBoss(); static T findComponent(Class<T> clazz); static T findComponent(Class<T> clazz, String name); static T findOrCreateComponent(Class<T> clazz); static T findOrCreateComponent(Class<T> clazz, String name, Map<Object, Object> options); static Language findLanguage(String name); static void registerLanguage(String languageName, Language language); static boolean providesLanguage(String name); static void registerComponentProvider(Class iface, ComponentProvider<?> provider); static boolean providesComponent(Class<? extends Component> clazz); static void shutdownAndReset(); synchronized static void addShutdownAction(Runnable action); static boolean inContainer(); static boolean inWildFly(); static Logger logger(String name); static Logger logger(Class clazz); static void setLogLevel(String level); static void updateClassPath(List<URL> classpath); static void updateClassPath(URL url); static ClassLoader classLoader(); static Locator locator(); static void setLocator(Locator loc); static synchronized Options options(); static synchronized void putOption(String k, Object v); static synchronized void mergeOptions(Options<String> other); static synchronized ExecutorService workerPool(); static synchronized void shutdownWorkerPool();  }
@Test public void testCanRegisterLanguage() { WunderBoss.registerLanguage("test", testLanguage); assertTrue(testLanguage.registered); }