PatientMatcher { public boolean isPatientOptedInCriteriaMet(Patient possibleMatch) { return possibleMatch.isOptedIn(); } protected  PatientMatcher(); static PatientMatcher getInstance(); boolean hasMatchByIds(Patient possibleMatch, Patient searchParams); boolean isPatientOptedInCriteriaMet(Patient possibleMatch); boolean hasMatchByDemographics(Patient possibleMatch, Patient searchParams);  }
@Test public void testIsPatientOptedInCriteriaMet() { PatientMatcher patientMatcher = createPatientMatcher(); Patient patient = createPatient(); patient.setOptedIn(false); assertFalse(patientMatcher.isPatientOptedInCriteriaMet(patient)); }