### Question:
CosineProc extends AlphaSimilarityProc<CosineAlgorithm, CosineConfig> { @Procedure(name = "gds.alpha.similarity.cosine.stats", mode = READ) @Description(DESCRIPTION) public Stream<SimilarityStatsResult> cosineStats( @Name(value = "graphName") Object graphNameOrConfig, @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration ) { return stats(graphNameOrConfig, configuration); }  @Procedure(name = "gds.alpha.similarity.cosine.stream", mode = READ) @Description(DESCRIPTION) Stream<SimilarityResult> cosineStream(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    ); @Procedure(name = "gds.alpha.similarity.cosine.write", mode = WRITE) @Description(DESCRIPTION) Stream<SimilaritySummaryResult> cosineWrite(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    ); @Procedure(name = "gds.alpha.similarity.cosine.stats", mode = READ) @Description(DESCRIPTION) Stream<SimilarityStatsResult> cosineStats(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    );  }### Answer:
@Test void cosineStatsTest() { runQueryWithResultConsumer(STATEMENT_STATS, map("config", map("concurrency", 1, "topK", 0, "showComputations", true), "missingValue", 0), results -> { assertTrue(results.hasNext()); Map<String, Object> row = results.next(); assertEquals(0.404144287109375, row.get("p75")); assertEquals(0.404144287109375, row.get("p90")); assertEquals(0.9128704071044922, row.get("p95")); assertEquals(0.9128704071044922, row.get("p99")); assertEquals(0.9128704071044922, row.get("p999")); assertEquals(0.9128704071044922, row.get("p100")); assertEquals(4L, row.get("nodes")); assertEquals(6L, row.get("similarityPairs")); assertEquals(6L, row.get("computations")); assertFalse(results.hasNext()); } ); }