@Test
    void verifyAvailableTypes() {
        val secret = UUID.randomUUID().toString();
        Arrays.stream(PasswordEncoderProperties.PasswordEncoderTypes.values()).forEach(type -> {
            val properties = new PasswordEncoderProperties();
            properties.setSecret(secret);
            val algorithm = switch (type) {
                case PBKDF2 -> "PBKDF2WithHmacSHA512";
                default -> "SHA-256";
            };
            properties.setEncodingAlgorithm(algorithm);
            properties.setStrength(16);
            properties.setType(type.name());
            val encoder = PasswordEncoderUtils.newPasswordEncoder(properties, applicationContext);
            verifyEncodeAndMatch(encoder);
        });
    }
This is {@link PasswordEncoderUtilsTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/support/password/PasswordEncoderUtilsTests.java