StudentServiceRs { @PUT @Path("/add") @Produces({ "application/json" }) public Response add(@NotNull Student student) throws URISyntaxException { service.add(student); return Response.status(201).contentLocation(new URI("students/byStudentId/" + student.getStudentId())).build(); }  @GET @Path("/nbStudents") @Produces({ "application/json" }) String getNbStudent(); @GET @Path("/all") @Produces({ "application/json" }) Response getAll(); @GET @Path("/byStudentId/{studentId}") @Produces({ "application/json" }) Response getStudentsByStudentId(
			@NotNull @Digits(integer = 7, fraction = 0) @PathParam("studentId") String studentId); @PUT @Path("/add") @Produces({ "application/json" }) Response add(@NotNull Student student); @POST @Path("/update/{studentId}") @Produces({ "application/json" }) Response update(@NotNull @Digits(integer = 7, fraction = 0) @PathParam("studentId") String studentId,
			@NotNull Student student);  }
@Test public void shouldAddReturnTheNewURI() throws URISyntaxException { Student student = new Student("Doe", "Jow", new Date(), new PhoneNumber("+33698075273")); Response result = sut.add(student); Assert.assertEquals(201, result.getStatus()); }