@Test
public void should_throw_InvalidAttendanceException_given_time_card_with_different_workday() {

    LocalDate anotherWorkDay = LocalDate.of(2019, 12, 25);
    TimeCard timeCard = TimeCard.of(anotherWorkDay, startWork, endWork, workTimeRule);
    Attendance attendance = new Attendance(employeeId, workDay);
    assertThatThrownBy(() -> attendance.assureStatus(notHoliday, timeCard, null))
            .isInstanceOf(InvalidAttendanceException.class)
            .hasMessageContaining("different work day for attendance, time card and leave");
}