### Question:
RadiologyReportFormController { @RequestMapping(method = RequestMethod.GET, params = "reportId") protected ModelAndView getRadiologyReportFormWithExistingRadiologyReport(@RequestParam("reportId") RadiologyReport radiologyReport) { final ModelAndView modelAndView = new ModelAndView(RADIOLOGY_REPORT_FORM_VIEW); addObjectsToModelAndView(modelAndView, radiologyReport); modelAndView.addObject(new VoidRadiologyReportRequest()); return modelAndView; }    }### Answer:
@Test public void shouldPopulateModelAndViewWithGivenRadiologyReport() { RadiologyReport mockRadiologyReport = RadiologyTestData.getMockRadiologyReport1(); ModelAndView modelAndView = radiologyReportFormController.getRadiologyReportFormWithExistingRadiologyReport(mockRadiologyReport); assertNotNull(modelAndView); assertThat(modelAndView.getViewName(), is(RadiologyReportFormController.RADIOLOGY_REPORT_FORM_VIEW)); assertThat(modelAndView.getModelMap(), hasKey("radiologyOrder")); RadiologyOrder radiologyOrder = (RadiologyOrder) modelAndView.getModelMap() .get("radiologyOrder"); assertThat(radiologyOrder, is(mockRadiologyReport.getRadiologyOrder())); RadiologyReport radiologyReport = (RadiologyReport) modelAndView.getModelMap() .get("radiologyReport"); assertNotNull(radiologyReport); assertThat(radiologyReport, is(mockRadiologyReport)); VoidRadiologyReportRequest voidRadiologyReportRequest = (VoidRadiologyReportRequest) modelAndView.getModelMap() .get("voidRadiologyReportRequest"); assertNotNull(voidRadiologyReportRequest); }