assertThat(message, equalTo("Hello, world"));
}
@Test
public void async() throws Exception {
Result result = MockJavaActionHelper.call(new MockJavaAction() {
public Promise<Result> index() {
return new javaguide.akka.async.Application().index();
}
}, Helpers.fakeRequest());
assertThat(Helpers.contentAsString(result), equalTo("Got 2"));