### Question:
PersonController { public Result postPersonJson(Person person) { return Results.json().render(person); }  Result getPersonJson(); Result postPersonJson(Person person); Result getPersonXml(); Result postPersonXml(Person person);  }### Answer:
@Test public void testPostPersonJson() throws Exception { Person person = new Person(); person.name = "zeeess name - and some utf8 => öäü"; String response = ninjaTestBrowser.postJson(getServerAddress() + "api/person.json", person); System.out.println("j: " + response); Person result = new ObjectMapper().readValue(response, Person.class); assertEquals(person.name, result.name); }