
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))
  }

}
import org.scalatest.FunSuite

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

Change HikerTest file to more idiomatic Scala
Change HikerTest file to more idiomatic Scala