@Test
public void shouldFindNextMatchingDateInclusiveOfDateProvided() {

    
    // setup
    LocalDate fromAndInclusiveOf = new LocalDate();
    DateTime expectedDateTimeToStartSearchFrom = fromAndInclusiveOf.minusDays(1).toDateMidnight().toDateTime();
    DateTime nextMatchingDate = new DateTime();
    
    // stubbing
    when(scheduledEvent.nextEventDateAfter(expectedDateTimeToStartSearchFrom)).thenReturn(nextMatchingDate);
    
    // exercise test
    LocalDate result = loanDisbursementStrategy.findClosestMatchingDateFromAndInclusiveOf(fromAndInclusiveOf);
    
    // verification
    assertThat(result, is(nextMatchingDate.toLocalDate()));
}