ConsentHelper { public Date setDateAsEndOfDay(Date consentEnd) { Calendar date = Calendar.getInstance(); date.setTime(consentEnd); date.set(Calendar.HOUR_OF_DAY, 23); date.set(Calendar.MINUTE, 59); date.set(Calendar.SECOND, 59); return date.getTime(); }  Date setDateAsEndOfDay(Date consentEnd); boolean isConsentTermOverlap(ConsentDto consentDto,
			Date conStartDate, Date conEndDate); Set<SpecificMedicalInfoDto> getDoNotShareClinicalConceptCodes(
			HashSet<String> icd9); boolean isPOUMatches(Set<String> selPOU,
			Set<ConsentShareForPurposeOfUseCode> conPOU); boolean isProviderComboMatch(Consent consent, ConsentDto consentDto);  }
@Test public void testDayIsEndOfDay() { Date date = new Date(); ConsentHelper helper = new ConsentHelper(); Date endOfDay = helper.setDateAsEndOfDay(date); Calendar today = Calendar.getInstance(); today.setTime(endOfDay); assertEquals(today.get(Calendar.HOUR_OF_DAY), 23); assertEquals(today.get(Calendar.MINUTE), 59); assertEquals(today.get(Calendar.SECOND), 59); }