### Question:
EnhancedServiceLoader { public static <S> List<S> loadAll(Class<S> service) { return InnerEnhancedServiceLoader.getServiceLoader(service).loadAll(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 getAllInstances(){ List<Hello> hellows1 = EnhancedServiceLoader.loadAll(Hello.class); List<Hello> hellows2 = EnhancedServiceLoader.loadAll(Hello.class); for (Hello hello : hellows1){ if(hello.say()!="Olá."){ assertThat(hellows2.contains(hello)).isTrue(); } else{ assertThat(hellows2.contains(hello)).isFalse(); } } }