### Question:
RadiologyOrderFormController { @RequestMapping(method = RequestMethod.GET) protected ModelAndView getRadiologyOrderFormWithNewRadiologyOrder() { final ModelAndView modelAndView = new ModelAndView(RADIOLOGY_ORDER_CREATION_FORM_VIEW); modelAndView.addObject("order", new Order()); modelAndView.addObject("radiologyReport", null); final RadiologyOrder radiologyOrder = new RadiologyOrder(); radiologyOrder.setStudy(new RadiologyStudy()); modelAndView.addObject("radiologyOrder", radiologyOrder); return modelAndView; }   static final String RADIOLOGY_ORDER_FORM_REQUEST_MAPPING; }### Answer:
@Test public void shouldPopulateModelAndViewWithNewRadiologyOrder() throws Exception { ModelAndView modelAndView = radiologyOrderFormController.getRadiologyOrderFormWithNewRadiologyOrder(); assertNotNull(modelAndView); assertThat(modelAndView.getViewName(), is(RadiologyOrderFormController.RADIOLOGY_ORDER_CREATION_FORM_VIEW)); assertThat(modelAndView.getModelMap(), hasKey("radiologyOrder")); RadiologyOrder order = (RadiologyOrder) modelAndView.getModelMap() .get("radiologyOrder"); assertNull(order.getOrderId()); assertNotNull(order.getStudy()); assertNull(order.getStudy() .getStudyId()); assertNull(order.getOrderer()); }