### Question:
WizardResource { @POST public Response add(MagicData magic) { String id = UUID.randomUUID().toString(); LOGGER.info("Magic is going on ..." + magic); magicStore.putAsync(id, new HPMagic(id, magic.getCaster(), magic.getCurse(), magic.isInHogwarts())); return Response.ok().status(201).build(); }  @GET Response health(); @POST Response add(MagicData magic);  }### Answer:
@Test public void testAdd() { given() .body("{\"caster\": \"Harry Potter\", \"curse\": \"Expelliarmus\", \"type\": \"STUDENT\"}") .header("Content-Type", MediaType.APPLICATION_JSON) .when() .post("/harry-potter/magic") .then() .statusCode(201); }