@Test
    void verifyAccountLogonHours() {
        val handler = new ActiveDirectoryLdapEntryHandler();
        val logonHours = new byte[21];
        for (var day = 1; day <= 6; day++) {
            for (var hour = 1; hour < 23; hour++) {
                val bitIndex = day * 24 + hour;
                val byteIndex = bitIndex / 8;
                val bitPosition = 7 - (bitIndex % 8);
                logonHours[byteIndex] |= (byte) (1 << bitPosition);
            }
        }
        
        val entry = LdapEntry.builder()
            .attributes(LdapAttribute.builder().name("logonHours")
                .values(logonHours)
                .build())
            .build();
        assertDoesNotThrow(() -> handler.apply(entry));
    }
This is {@link ActiveDirectoryLdapEntryHandlerTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-ldap-core/src/test/java/org/apereo/cas/ActiveDirectoryLdapEntryHandlerTests.java