### Question:
PrescriptionController { @GetMapping public List<Prescription> list(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant) { return this.prescriptionService.findAll(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 list() throws Exception { HttpHeaders headers = new HttpHeaders(); headers.set(Constants.GRANT_HEADER, this.registeredPhysician.getGrant()); HttpEntity<?> entity = new HttpEntity<>(headers); ResponseEntity<Prescription[]> response = this.restTemplate.exchange("/prescriptions", HttpMethod.GET, entity, Prescription[].class); assertEquals(200, response.getStatusCodeValue()); Prescription[] retrievedPrescriptions = response.getBody(); assertNotNull(retrievedPrescriptions); assertEquals(2, retrievedPrescriptions.length); this.mockMvc .perform(MockMvcRequestBuilders.request(HttpMethod.GET, "/prescriptions").header(Constants.GRANT_HEADER, this.registeredPhysician.getGrant())) .andDo(document("prescription/list", preprocessRequest(prettyPrint()), preprocessResponse(prettyPrint()))); }