@Test
public void testStemmingUsedWithDefaultAttributes() {

  LingoClusteringAlgorithm algorithm = algorithm();
  algorithm.queryHint.set("test");
  Stream<Document> documents =
      Stream.of(
              "program", "programs", "programming", "program", "programs", "programming", "other")
          .map(title -> new TestDocument(title));
  List<Cluster<Document>> clusters =
      algorithm.cluster(documents, CachedLangComponents.loadCached("English"));
  Assertions.assertThat(clusters).isNotEmpty();
  Assertions.assertThat(
          clusters.stream()
              .flatMap(c -> c.getLabels().stream())
              .map(label -> label.toLowerCase(Locale.ROOT)))
      .containsOnly("program");
}