### Question:
ParticipantApi { @POST @Consumes("application/json") @Produces("application/json") public Participant addParticipant( Participant body) { return participantService.addParticipant(body); } @Inject  ParticipantApi(ParticipantApiService participantService); @POST @Consumes("application/json") @Produces("application/json") /** * create a new participant * a participant is someone who can post news to friends * @param body participant to be created (required) * @return Participant */ Participant addParticipant( Participant body);  }### Answer:
@Test public void addParticipantTest() { Participant response = api.addParticipant(participant); assertTrue(String.format("Expected ID to be %d but instead it was %d", TEST_ID, response.getId()), TEST_ID == response.getId()); }