@Test public void getScoreWithPatientForwardsToService() throws ComponentLookupException { Patient patient = mock(Patient.class); PatientSpecificityService service = this.mocker.getInstance(PatientSpecificityService.class); when(service.getScore(patient)).thenReturn(2.5); Assert.assertEquals(2.5, this.mocker.getComponentUnderTest().getScore(patient), 0.0); }
public double getScore(Patient patient) { return this.service.getScore(patient); }
PatientSpecificityScriptService implements ScriptService { public double getScore(Patient patient) { return this.service.getScore(patient); } }
PatientSpecificityScriptService implements ScriptService { public double getScore(Patient patient) { return this.service.getScore(patient); }  }
PatientSpecificityScriptService implements ScriptService { public double getScore(Patient patient) { return this.service.getScore(patient); }  double getScore(Patient patient); double getScore(String[] features, String[] negativeFeatures); }
PatientSpecificityScriptService implements ScriptService { public double getScore(Patient patient) { return this.service.getScore(patient); }  double getScore(Patient patient); double getScore(String[] features, String[] negativeFeatures);  }