### Question:
PatientController { @GetMapping("/{id}") public Patient get(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant, @PathVariable("id") String patientId) { return this.patientService.get(patientId, grant); }  @GetMapping List<Patient> list(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant); @GetMapping("/{id}") Patient get(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant, @PathVariable("id") String patientId); @GetMapping("/{id}/physicians") List<Physician> list(@RequestHeader(Constants.GRANT_HEADER) PureGrant grant,
			@PathVariable("id") String patientId);  }### Answer:
@Test void get() throws Exception { UserRegistration registeredPatient = this.registeredPatients.iterator().next(); HttpHeaders headers = new HttpHeaders(); headers.set(Constants.GRANT_HEADER, registeredPatient.getGrant()); HttpEntity<?> entity = new HttpEntity<>(headers); ResponseEntity<Patient> response = this.restTemplate.exchange("/patients/" + registeredPatient.getUserId(), HttpMethod.GET, entity, Patient.class); assertEquals(200, response.getStatusCodeValue()); Patient patient = response.getBody(); assertNotNull(patient); validate(patient); this.mockMvc .perform(MockMvcRequestBuilders.request(HttpMethod.GET, "/patients/" + registeredPatient.getUserId()) .header(Constants.GRANT_HEADER, registeredPatient.getGrant())) .andDo(document("patient/get", preprocessRequest(prettyPrint()), preprocessResponse(prettyPrint()))); }