package org.synyx.urlaubsverwaltung.settings;

import org.junit.Assert;
import org.junit.jupiter.api.Test;


/**
 * Unit test for {@link CalendarSettings}.
 */
class CalendarSettingsTest {

    @Test
    void ensureHasDefaultValues() {

        CalendarSettings calendarSettings = new CalendarSettings();

        Assert.assertNotNull("Should not be null", calendarSettings.getExchangeCalendarSettings());
    }
}

package org.synyx.urlaubsverwaltung.settings;

import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;


/**
 * Unit test for {@link CalendarSettings}.
 */
class CalendarSettingsTest {

    @Test
    void ensureHasDefaultValues() {

        final CalendarSettings calendarSettings = new CalendarSettings();

        assertThat(calendarSettings.getExchangeCalendarSettings()).isNotNull();
    }
}

Remove last Assert assertion