}
@Test
@Transactional
public void exportExceptionTypes2() {
CalendarExceptionType calendarExceptionType = givenCalendarExceptionTypeStored();
CalendarExceptionTypeListDTO list = calendarExceptionTypeService
.getCalendarExceptionType();
assertThat(list.calendarExceptionTypes.size(), equalTo(1));
CalendarExceptionTypeDTO calendarExceptionTypeDTO = list.calendarExceptionTypes
.get(0);
assertThat(calendarExceptionTypeDTO.code, equalTo(calendarExceptionType
.getCode()));
assertThat(calendarExceptionTypeDTO.name, equalTo(calendarExceptionType
.getName()));
assertThat(
CalendarExceptionTypeColorConverter
.toEntity(calendarExceptionTypeDTO.color),
equalTo(calendarExceptionType.getColor()));
assertThat(calendarExceptionTypeDTO.overAssignable,
equalTo(calendarExceptionType.isOverAssignableWithoutLimit()));
}