[SPARK-3054][STREAMING] Add unit tests for Spark Sink.

This patch adds unit tests for Spark Sink.

It also removes the private[flume] for Spark Sink,
since the sink is instantiated from Flume configuration (looks like this is ignored by reflection which is used by
Flume, but we should still remove it anyway).
super nit, no change necessary. A simpler implementation is possible. No latch necessary.
```
val futures = transceiversAndClients.map( x => {
  Future {
      ....
  }
)
Await.result(Future.sequence(futures), timeout)    // Future.sequence converst seq of Future to a single Future of seq.
```