You can use with SharedSparkContext to save beforeAll and afterAll.