### Question:
ServiceLoaderExt { public static <S> ServiceLoaderExt<S> load(Class<S> service, ClassLoader loader) { return new ServiceLoaderExt<>(ServiceLoader.load(service, loader)); } private  ServiceLoaderExt(ServiceLoader<S> serviceLoader); static ServiceLoaderExt<S> load(Class<S> service, ClassLoader loader); static ServiceLoaderExt<S> load(Class<S> service); static ServiceLoaderExt<S> loadInstalled(Class<S> service); static ServiceLoaderExt<S> load(ModuleLayer layer, Class<S> service); Optional<S> findFirst(); void reload(); void forEach(Consumer<? super S> action); Spliterator<S> spliterator(); Iterator<S> iterator(); Stream<ServiceLoader.Provider<S>> stream();  }### Answer:
@Test public void loadWithClassloader() { ClassLoader classLoader = mock(ClassLoader.class); ServiceLoaderExt<SampleService> result = ServiceLoaderExt.load(SampleService.class, classLoader); assertThat(result).isNotNull().isExactlyInstanceOf(ServiceLoaderExt.class); }
@Test public void loadWithModuleLayer() { ServiceLoaderExt<SampleService> result = ServiceLoaderExt.load(ModuleLayer.empty(),SampleService.class); assertThat(result).isNotNull(); }