### Question:
SccProc extends AlgoBaseProc<SccAlgorithm, HugeLongArray, SccConfig> { @Procedure(value = "gds.alpha.scc.stream", mode = READ) @Description(DESCRIPTION) public Stream<SccAlgorithm.StreamResult> stream( @Name(value = "graphName") Object graphNameOrConfig, @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration ) { ComputationResult<SccAlgorithm, HugeLongArray, SccConfig> computationResult = compute(graphNameOrConfig, configuration); AllocationTracker tracker = allocationTracker(); Graph graph = computationResult.graph(); HugeLongArray components = computationResult.result(); if (graph.isEmpty()) { graph.release(); return Stream.empty(); } log.info("Scc: overall memory usage: %s", tracker.getUsageString()); graph.release(); return LongStream.range(0, graph.nodeCount()) .filter(i -> components.get(i) != -1) .mapToObj(i -> new SccAlgorithm.StreamResult(graph.toOriginalNodeId(i), components.get(i))); }  @Procedure(value = "gds.alpha.scc.write", mode = WRITE) @Description(DESCRIPTION) Stream<SccResult> write(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    ); @Procedure(value = "gds.alpha.scc.stream", mode = READ) @Description(DESCRIPTION) Stream<SccAlgorithm.StreamResult> stream(
        @Name(value = "graphName") Object graphNameOrConfig,
        @Name(value = "configuration", defaultValue = "{}") Map<String, Object> configuration
    );  }### Answer:
@Test void testStream() { final IntIntScatterMap testMap = new IntIntScatterMap(); String query = GdsCypher .call() .withAnyLabel() .withAnyRelationshipType() .algo("gds.alpha.scc") .streamMode() .yields(); runQueryWithRowConsumer(query, row -> testMap.addTo(row.getNumber("componentId").intValue(), 1) ); assertEquals(3, testMap.size()); for (IntIntCursor cursor : testMap) { assertEquals(3, cursor.value); } }