### Question:
FilmResource { @Mutation public Hero createHero(Hero hero) { service.addHero(hero); return hero; }  @Query("allFilms") @Description("Get all Films from a galaxy far far away") List<Film> getAllFilms(); @Query @Description("Get a Films from a galaxy far far away") Film getFilm(@Name("filmId") int id); List<Hero> heroes(@Source Film film); @Mutation Hero createHero(Hero hero); @Mutation Hero deleteHero(int id); @Query List<Hero> getHeroesWithSurname(@DefaultValue("Skywalker") String surname);  }### Answer:
@Test public void createHero() { String requestBody = "{\"query\":" + "\"" + "mutation addHero { " + "createHero" + "(hero: " + "{"+ "name: \\\"Han\\\" " + "surname: \\\"Solo\\\" " + "height: 1.85" + "}" + ")" + "{" + "name " + "surname" + "}" + "}" + "\"" + "}"; given() .body(requestBody) .contentType(ContentType.JSON) .post("/graphql/") .then() .contentType(ContentType.JSON) .body("data.createHero.name", is("Han")) .body("data.createHero.surname", is("Solo")) .statusCode(200); }