### Question:
PrescriptionController { @PostMapping public String create(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant, @RequestBody Prescription prescription) { return this.prescriptionService.create(prescription, grant); }  @GetMapping List<Prescription> list(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant); @PostMapping String create(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant,
			@RequestBody Prescription prescription); @GetMapping("/{id}") Prescription get(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant,
			@PathVariable("id") String prescriptionId); @PutMapping("/{id}") void update(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant,
			@PathVariable("id") String prescriptionId, @RequestBody Prescription prescription);  }### Answer:
@Test void create() throws Exception { String patientId = this.registeredPatients.iterator().next().getUserId(); Prescription prescription = new Prescription(patientId, "The notes", Utils.yesterday(), Utils.today()); HttpHeaders headers = new HttpHeaders(); headers.set(Constants.GRANT_HEADER, this.registeredPhysician.getGrant()); HttpEntity<Prescription> entity = new HttpEntity<>(prescription, headers); ResponseEntity<String> createResponse = this.restTemplate.exchange("/prescriptions", HttpMethod.POST, entity, String.class); assertEquals(200, createResponse.getStatusCodeValue()); String prescriptionId = createResponse.getBody(); entity = new HttpEntity<>(headers); ResponseEntity<Prescription> response = this.restTemplate.exchange("/prescriptions/" + prescriptionId, HttpMethod.GET, entity, Prescription.class); assertEquals(200, response.getStatusCodeValue()); Prescription readPrescription = response.getBody(); assertNotNull(readPrescription); assertEquals(prescription.getNotes(), readPrescription.getNotes()); assertEquals(prescription.getAssingDate(), readPrescription.getAssingDate()); assertEquals(prescription.getReleaseDate(), readPrescription.getReleaseDate()); this.mockMvc .perform(MockMvcRequestBuilders.request(HttpMethod.POST, "/prescriptions") .content(jackson2ObjectMapper.writeValueAsString(prescription)) .header(Constants.GRANT_HEADER, this.registeredPhysician.getGrant()) .header(HttpHeaders.CONTENT_TYPE, "application/json")) .andDo(document("prescription/create", preprocessRequest(prettyPrint()), preprocessResponse(prettyPrint()))); }