import org.junit.*;

import static org.fest.assertions.Assertions.*;


/**
*
* Simple (JUnit) tests that can call all parts of a play app.
* If you are interested in mocking a whole application, see the wiki for more details.
*
*/
public class ApplicationTest {

    @Test
    public void simpleCheck() {
        int a = 1 + 1;
        assertThat(a).isEqualTo(2);
    }

    @Test
    public void renderTemplate() {
        Content html = views.html.index.render("Your new application is ready.");
        assertThat(contentType(html)).isEqualTo("text/html");
        assertThat(contentAsString(html)).contains("Your new application is ready.");
    }


}

@@ -25,210 +25,336 @@
 ort 
-static org.fest.assertions.Assertions.*;%0A%0A%0A/**%0A*%0A* Simple (JUnit) tests that can call all parts of a play app.%0A* If you are interested in mocking a whole application, see the wiki for more details.%0A*%0A*/
+play.mvc.Result;%0Aimport play.mvc.Http.Status;%0A%0Aimport static org.fest.assertions.Assertions.assertThat;%0Aimport static play.test.Helpers.callAction;%0Aimport static play.test.Helpers.contentAsString;%0Aimport static play.test.Helpers.contentType;%0Aimport static play.test.Helpers.fakeRequest;%0Aimport static play.test.Helpers.status;%0A%0A
 %0Apub
@@ -412,19 +412,12 @@
 oid 
-simpleCheck
+home
 () %7B
@@ -429,190 +429,161 @@
     
-int a = 1 + 1;%0A        assertThat(a).isEqualTo(2);
+Result result = callAction(
 %0A    
-%7D%0A%0A
     
-@Test%0A    public void renderTemplate() %7B%0A        Content html = views.html.index.render(%22Your new application is ready.%22
+    controllers.routes.ref.Application.home(), fakeRequest());%0A        assertThat(status(result)).isEqualTo(Status.OK
 );%0A 
@@ -612,20 +612,22 @@
 entType(
-html
+result
 )).isEqu
@@ -680,20 +680,22 @@
 sString(
-html
+result
 )).conta
@@ -703,38 +703,25 @@
 ns(%22
-Your new application is ready.
+create an account
 %22);%0A
@@ -727,11 +727,10 @@
 %0A    %7D%0A%0A
-%0A
 %7D%0A

Replace example tests in ApplicationTest.java with basic test for `home` action of `Application` controller.