title: Unable to run Unit tests (scalatest) on Spark-2.2.0 - Scala-2.11.8
body: <p>Unable to run run scalatest with context on spark-2.2.0</p>
  
  <p>StackTrace:</p>
  
  <blockquote>
    <p>An exception or error caused a run to abort: org.apache.spark.sql.test.SharedSQLContext.eventually(Lorg/scalatest/concurrent/PatienceConfiguration$Timeout;Lscala/Function0;Lorg/scalatest/concurrent/AbstractPatienceConfiguration$PatienceConfig;)Ljava/lang/Object; 
    java.lang.NoSuchMethodError: org.apache.spark.sql.test.SharedSQLContext.eventually(Lorg/scalatest/concurrent/PatienceConfiguration$Timeout;Lscala/Function0;Lorg/scalatest/concurrent/AbstractPatienceConfiguration$PatienceConfig;)Ljava/lang/Object;
        at org.apache.spark.sql.test.SharedSQLContext$class.afterEach(SharedSQLContext.scala:92)
        at testUtils.ScalaTestWithContext1.afterEach(ScalaTestWithContext1.scala:7)
        at org.scalatest.BeforeAndAfterEach$$anonfun$1.apply$mcV$sp(BeforeAndAfterEach.scala:234)</p>
  </blockquote>
  
  <p>sample code:</p>
  
  <pre><code>  import org.apache.spark.sql.SparkSession
    import testUtils.ScalaTestWithContext1
  
    class SampLeTest extends ScalaTestWithContext1 {
    override protected def spark: SparkSession = ???
  
       test("test") {
          1 == 1 shouldBe true
       }
    }
  </code></pre>
  
  <p>ScalaTestWithContext1.scala </p>
  
  <pre><code>  import org.apache.spark.sql.QueryTest
    import org.apache.spark.sql.test.SharedSQLContext
    import org.scalatest.{BeforeAndAfterAll, Matchers}
  
    abstract class ScalaTestWithContext extends QueryTest with SharedSQLContext with Matchers with BeforeAndAfterAll{}
  </code></pre>
  
  <p>build.sbt :</p>
  
  <pre><code>name := "test"
  version := "1.0"
  scalaVersion := "2.11.11"
  
  parallelExecution in Test := false
  
  libraryDependencies ++= Seq(
    "org.scala-lang" % "scala-library" % "2.11.11" % "provided",
    "org.apache.spark" %% "spark-core" % "2.2.0",
    "org.apache.spark" %% "spark-sql" % "2.2.0",
    "org.apache.spark" %% "spark-catalyst" % "2.2.0",
    "org.apache.spark" %% "spark-core" % "2.2.0" % "test" classifier 
  "tests",
    "org.apache.spark" %% "spark-sql" % "2.2.0" % "test" classifier 
  "tests",
    "org.apache.spark" %% "spark-catalyst" % "2.2.0" % "test" classifier 
  "tests",
    "org.scalatest" %% "scalatest" % "3.0.1" % "test"
  ) 
  </code></pre>
  
  <p>The class ScalaTestWithContext1 extends SharedSQLContext and all required traits. </p>
  
  <p>Thanks in Advance.</p>