/*
 * Copyright 2016 HM Revenue & Customs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package controllers

import play.api.libs.json.JsValue
import play.api.mvc.Action
import uk.gov.hmrc.play.microservice.controller.BaseController
import repositories._
import repositories.application.OnlineTestRepository

import scala.concurrent.Future

object Phase1TestGroupController extends Phase1TestGroupController {
  override val phase1TestRepository = onlineTestRepository
}

trait Phase1TestGroupController extends BaseController {

  val phase1TestRepository: OnlineTestRepository

  def getStatus(applicationId: String): Action[JsValue] = Action.async(parse.json) { implicit request =>
    for {
      phase1TestGroupOpt <- phase1TestRepository.getPhase1TestProfile(applicationId)
    } yield {
      phase1TestGroupOpt.map { Ok(_) }.getOrElse(NotFound)
    }
  }
}

/*
 * Copyright 2016 HM Revenue & Customs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package controllers

import model.exchange.Phase1TestResultReady
import play.api.mvc.Action
import uk.gov.hmrc.play.microservice.controller.BaseController
import play.api.Logger
import scala.concurrent.Future

object Phase1TestGroupController extends Phase1TestGroupController {

}

trait Phase1TestGroupController extends BaseController {

  def getStatus(applicationId: String) = Action.async(parse.json) { implicit request =>

    Future.successful(Ok)
  }
}

--- 
+++ 
@@ -16,20 +16,27 @@
 
 package controllers
 
-import model.exchange.Phase1TestResultReady
+import play.api.libs.json.JsValue
 import play.api.mvc.Action
 import uk.gov.hmrc.play.microservice.controller.BaseController
-import play.api.Logger
+import repositories._
+import repositories.application.OnlineTestRepository
+
 import scala.concurrent.Future
 
 object Phase1TestGroupController extends Phase1TestGroupController {
-
+  override val phase1TestRepository = onlineTestRepository
 }
 
 trait Phase1TestGroupController extends BaseController {
 
-  def getStatus(applicationId: String) = Action.async(parse.json) { implicit request =>
+  val phase1TestRepository: OnlineTestRepository
 
-    Future.successful(Ok)
+  def getStatus(applicationId: String): Action[JsValue] = Action.async(parse.json) { implicit request =>
+    for {
+      phase1TestGroupOpt <- phase1TestRepository.getPhase1TestProfile(applicationId)
+    } yield {
+      phase1TestGroupOpt.map { Ok(_) }.getOrElse(NotFound)
+    }
   }
 }
Add placeholding controller method for getting test group status
