### Question:
RadiologyOrder extends TestOrder { public void setStudy(RadiologyStudy radiologyStudy) { if (radiologyStudy != null) { radiologyStudy.setRadiologyOrder(this); } this.study = radiologyStudy; }  RadiologyStudy getStudy(); void setStudy(RadiologyStudy radiologyStudy); boolean isInProgress(); boolean isNotInProgress(); boolean isCompleted(); boolean isNotCompleted(); boolean isDiscontinuationAllowed();  }### Answer:
@Test public void shouldSetTheRadiologyOrderOfGivenStudyToThisRadiologyOrder() throws Exception { RadiologyOrder radiologyOrder = new RadiologyOrder(); RadiologyStudy study = new RadiologyStudy(); radiologyOrder.setStudy(study); assertThat(study.getRadiologyOrder(), is(radiologyOrder)); }
@Test public void shouldNotFailToSetTheStudyGivenNull() throws Exception { RadiologyOrder radiologyOrder = new RadiologyOrder(); radiologyOrder.setStudy(null); assertNotNull(radiologyOrder); }