@Test
public void shouldDetermineDateAsValidForScheduleWhenReturnsSameDate() {

    
    // setup
    LocalDate disbursementDate = new LocalDate();
    DateTime disbursementDateAsDateTime = disbursementDate.toDateMidnight().toDateTime();
    
    // stubbing
    when(scheduledEvent.nearestMatchingDateBeginningAt(disbursementDateAsDateTime)).thenReturn(disbursementDateAsDateTime);
    
    // exercise test
    boolean result = loanDisbursementStrategy.isDisbursementDateValidInRelationToSchedule(disbursementDate);
    
    // verification
    assertTrue("given nearest matching valid date is same as date provided, then dibursement date should be valid.", result);
}