### Question:
FootballTeamRest { @GET @Produces({MediaType.APPLICATION_JSON}) public List<Team> findAll() { return teamService.getTeams(); }  @POST @Consumes({MediaType.APPLICATION_JSON}) @Transactional(Transactional.TxType.REQUIRES_NEW) void create(Team team); @PUT @Path("{id}") @Consumes({MediaType.APPLICATION_JSON}) @Transactional(Transactional.TxType.REQUIRES_NEW) void edit(
            @PathParam("id") String id, Team team); @DELETE @Path("{id}") @Transactional(Transactional.TxType.REQUIRES_NEW) void remove(
            @PathParam("id") String id); @GET @Path("{id}") @Produces({MediaType.APPLICATION_JSON}) Team find(
            @PathParam("id") String id); @GET @Produces({MediaType.APPLICATION_JSON}) List<Team> findAll();  }### Answer:
@Test @InSequence(2) public void testFindAll() { System.out.println("findAll"); Response response = target.request().get(); assertThat(response.getStatus(), is(Response.Status.OK.getStatusCode())); List<Team> responseEntity = response.readEntity(new GenericTypeTeamListImpl()); assertThat(responseEntity.size(), is(3)); Team newTeam = responseEntity.get(2); teamId = newTeam.getId(); }