@Test
public void testClusteringWithDfThreshold() {

  LingoClusteringAlgorithm algorithm = algorithm();
  algorithm.preprocessing.wordDfThreshold.set(100);
  List<Cluster<Document>> clusters =
      algorithm.cluster(
          SampleDocumentData.DOCUMENTS_DATA_MINING.stream(),
          CachedLangComponents.loadCached("English"));
  // Clustering with df threshold must not fail
  Assertions.assertThat(clusters).isEmpty();
}