SparkConf sparkConf=new SparkConf();
SparkSession sparkSession = SparjSessuib.builder().config(sparkConf).getOrCreate();
how to mock this in junit
I tried mockito but it has failed with NUll pointer exception.
*******.SparkConf.getAll() because conf is null