@Test public void testCreate() { Map<String, String> params = new HashMap(); params.put("title", "All Things v9"); params.put("link", "http://anthonyeden.com/rss.xml"); params.put("description", "Words from Anthony Eden, Founder of DNSimple"); Result result = callAction( controllers.routes.ref.Channels.create(), new FakeRequest(POST, "/channels/create").withFormUrlEncodedBody(params)); assertThat(status(result)).isEqualTo(OK); assertThat(contentType(result)).isEqualTo("application/json"); assertThat(charset(result)).isEqualTo("utf-8"); assertThat(contentAsString(result)).contains("Anthony"); }