MessageManager { protected static ClassLoader getClassLoader() { ClassLoader contextClassLoader = Thread.currentThread() .getContextClassLoader(); if (contextClassLoader != null) { return contextClassLoader; } ClassLoader thisClassLoader = MessageManager.class.getClassLoader(); return thisClassLoader; } MessageManager(String configFile);  MessageManager(String configFile, String messageIdFormatKey,
                          String messageBaseNameKey,
                          String throwIfResourceNotFoundKey,
                          String messageFormatterFqcnKey); String getMessage(boolean resource, String messageIdOrPattern,
            Object... args); String getMessage(boolean resource, String messageIdOrPattern,
            Locale locale, Object... args);  }
@Test public void testGetClassLoader01() { assertSame(Thread.currentThread().getContextClassLoader(), MessageManager.getClassLoader()); }
@Test public void testGetClassLoader02() { Thread.currentThread().setContextClassLoader(null); assertSame(MessageManager.class.getClassLoader(), MessageManager .getClassLoader()); }