@Test
public void testMultipleSpiDeduplicatesProviders() {

  Map<String, List<LanguageComponentsProvider>> langs =
      LanguageComponentsLoader.loadProvidersFromSpi(
          getClass().getClassLoader(), getClass().getClassLoader());
  for (List<LanguageComponentsProvider> perLangProviders : langs.values()) {
    perLangProviders.stream()
        .collect(Collectors.groupingBy(LanguageComponentsProvider::getClass))
        .values()
        .forEach(
            providersByClass -> {
              Assertions.assertThat(providersByClass).hasSize(1);
            });
  }
}