### Question:
EnhancedServiceLoader { @SuppressWarnings("rawtypes") static <S> List<Class> getAllExtensionClass(Class<S> service) { return InnerEnhancedServiceLoader.getServiceLoader(service).getAllExtensionClass(findClassLoader()); }  static S load(Class<S> service, ClassLoader loader); static S load(Class<S> service); static S load(Class<S> service, String activateName); static S load(Class<S> service, String activateName, ClassLoader loader); static S load(Class<S> service, String activateName, Object[] args); static S load(Class<S> service, String activateName, Class[] argsType, Object[] args); static List<S> loadAll(Class<S> service); static List<S> loadAll(Class<S> service, Class[] argsType, Object[] args);  }### Answer:
@Test public void getAllExtensionClass() { List<Class> allExtensionClass = EnhancedServiceLoader.getAllExtensionClass(Hello.class); assertThat(allExtensionClass.get(3).getSimpleName()).isEqualTo((LatinHello.class.getSimpleName())); assertThat(allExtensionClass.get(2).getSimpleName()).isEqualTo((FrenchHello.class.getSimpleName())); assertThat(allExtensionClass.get(1).getSimpleName()).isEqualTo((EnglishHello.class.getSimpleName())); assertThat(allExtensionClass.get(0).getSimpleName()).isEqualTo((ChineseHello.class.getSimpleName())); }
@Test public void getAllExtensionClass1() { List<Class> allExtensionClass = EnhancedServiceLoader .getAllExtensionClass(Hello.class, ClassLoader.getSystemClassLoader()); assertThat(allExtensionClass).isNotEmpty(); }