### Question:
FilmResource { @Mutation public Hero deleteHero(int id) { return service.deleteHero(id); }  @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 deleteHero() { String requestBody = "{\"query\":" + "\"" + "mutation DeleteHero { " + "deleteHero" + "(id: 3)" + "{" + "name " + "surname" + "}" + "}" + "\"" + "}"; given() .body(requestBody) .contentType(ContentType.JSON) .post("/graphql/") .then() .contentType(ContentType.JSON) .body("data.deleteHero.name", is("Han")) .body("data.deleteHero.surname", is("Solo")) .statusCode(200); }