@RunWith(classOf[JUnitRunner])
class YQLTest extends Specification with YQL {

  implicit val system = ActorSystem("yql-test")
  
  "YQL" should {
    
    "issue request and get response" in {
      val query =
        """select * from yahoo.finance.quote 
          |where symbol in ("YHOO","AAPL","GOOG","MSFT")""".stripMargin
      val future = executeQuery(query)
      val response = Await.result(future, Duration(10, TimeUnit.SECONDS))
      println(response)
      response.status must be(StatusCodes.OK)
    }
  }
}