### Question:
RootController extends ControllerBase implements MustacheViewMixin { @GET("/json") public WebResponse json() { return this.renderJSON(new MyObjectAPIResponse(new MyObject("John"))); }  @GET("/") WebResponse root(); @GET("/q/q/query") MyObjectAPIResponse qqquery(@Param("hoge") String hoge,
			@Param("foo") int foo); @GET("/json") WebResponse json(); @Override MustacheView getMustacheView();  }### Answer:
@Test public void testJson() throws Exception { Mech2Result res = this.mech2.get("/json").execute(); assertEquals(200, res.getResponse().getStatusLine().getStatusCode()); ContentType ct = ContentType.parse( res.getResponse().getFirstHeader("Content-Type") .getValue()); assertEquals( "application/json", ct.getMimeType()); assertEquals("UTF-8", ct.getCharset().displayName()); RootController.MyObjectAPIResponse dat = res .parseJSON(RootController.MyObjectAPIResponse.class); assertThat(dat.getCode(), is(200)); assertThat(dat.getData().getName(), is("John")); }