import org.scalatest.FunSuite

class HikerSuite extends FunSuite {
  test("the answer to life the universe and everything") {
    assert(Hiker.answer == 42)
  }
}


import org.scalatest.FunSuite

class HikerSuite extends FunSuite {

  test("the answer to life the universe and everything") {
    val douglas = new Hiker
    assert(douglas.answer() === (42))
  }

}
--- 
+++ 
@@ -1,11 +1,7 @@
-
 import org.scalatest.FunSuite
 
 class HikerSuite extends FunSuite {
-
   test("the answer to life the universe and everything") {
-    val douglas = new Hiker
-    assert(douglas.answer() === (42))
+    assert(Hiker.answer == 42)
   }
-
 }
Change HikerTest file to more idiomatic Scala