@Test
public void testMergingBaseClustersWithStemEquivalentPhrases() {

  List<String> titles =
      Arrays.asList(
          "good programs . foo1",
          "foo2 good programs . foo2",
          "good programs taste good",
          "good programs are good",
          "good programming . foo3",
          "foo4 good programming . foo4",
          "good programming makes you feel better");
  STCClusteringAlgorithm algorithm = algorithm();
  algorithm.minBaseClusterScore.set(0d);
  Stream<TestDocument> documentStream = titles.stream().map(title -> new TestDocument(title));
  List<Cluster<Document>> clusters =
      algorithm.cluster(documentStream, CachedLangComponents.loadCached("English"));
  Assertions.assertThat(clusters.stream().flatMap(cluster -> cluster.getLabels().stream()))
      .contains("Good Programs")
      .doesNotContain("Good Programming");
}