assertEquals(true, testResult);
}
//-------------------------------------------------------------------------
public void test_isHoliday_LocalDateTypeExternalId_holiday() throws Exception {
HolidayMaster mock = mock(HolidayMaster.class);
HolidaySearchRequest request = new HolidaySearchRequest(HolidayType.BANK, ExternalIdBundle.of(ID));
request.setDateToCheck(DATE_MONDAY);
request.setVersionCorrection(VC);
ManageableHoliday holiday = new ManageableHoliday(GBP, Collections.singletonList(DATE_MONDAY));
HolidaySearchResult result = new HolidaySearchResult();
result.getDocuments().add(new HolidayDocument(holiday));
when(mock.search(request)).thenReturn(result);
MasterHolidaySource test = new MasterHolidaySource(mock, VC);
boolean testResult = test.isHoliday(DATE_MONDAY, HolidayType.BANK, ID);
verify(mock, times(1)).search(request);
assertEquals(true, testResult);