### Question:
PeopleResource { @GET @UnitOfWork public List<Person> listPeople() { return peopleDAO.findAll(); } PeopleResource(PersonDAO peopleDAO); @POST @UnitOfWork Person createPerson(Person person); @GET @UnitOfWork List<Person> listPeople();  }### Answer:
@Test public void listPeople() throws Exception { final ImmutableList<Person> people = ImmutableList.of(person); when(dao.findAll()).thenReturn(people); final List<Person> response = resources.client().target("/people") .request().get(new GenericType<List<Person>>() { }); verify(dao).findAll(); assertThat(response).containsAll(people); }