PatientMatcher { public static PatientMatcher getInstance() { if (instance == null) { instance = new PatientMatcher(); } return instance; } protected  PatientMatcher(); static PatientMatcher getInstance(); boolean hasMatchByIds(Patient possibleMatch, Patient searchParams); boolean isPatientOptedInCriteriaMet(Patient possibleMatch); boolean hasMatchByDemographics(Patient possibleMatch, Patient searchParams);  }
@Test public void testGetInstance() { PatientMatcher patientMatcher = PatientMatcher.getInstance(); assertNotNull(patientMatcher); PatientMatcher patientMatcher2 = PatientMatcher.getInstance(); assertEquals(patientMatcher, patientMatcher2); }