@Test
public void testMaxClusters() {

  STCClusteringAlgorithm algorithm = algorithm();
  algorithm.maxClusters.set(9);
  List<Cluster<Document>> clusters =
      algorithm.cluster(
          SampleDocumentData.DOCUMENTS_DATA_MINING.stream(),
          CachedLangComponents.loadCached("English"));
  Assertions.assertThat(clusters.size()).isEqualTo(9);
}