### Question:
PeopleResource { @POST @UnitOfWork public Person createPerson(Person person) { return peopleDAO.create(person); } PeopleResource(PersonDAO peopleDAO); @POST @UnitOfWork Person createPerson(Person person); @GET @UnitOfWork List<Person> listPeople();  }### Answer:
@Test public void createPerson() throws JsonProcessingException { when(dao.create(any(Person.class))).thenReturn(person); final Response response = resources.client().target("/people") .request(MediaType.APPLICATION_JSON_TYPE) .post(Entity.entity(person, MediaType.APPLICATION_JSON_TYPE)); assertThat(response.getStatusInfo()).isEqualTo(Response.Status.OK); verify(dao).create(personCaptor.capture()); assertThat(personCaptor.getValue()).isEqualTo(person); }