@Test
    void verifyPasswordEncoderByMD5() {
        val properties = new PasswordEncoderProperties();
        properties.setType(PasswordEncoderProperties.PasswordEncoderTypes.DEFAULT.name());
        properties.setEncodingAlgorithm("MD5");
        properties.setCharacterEncoding("UTF-8");
        val e = PasswordEncoderUtils.newPasswordEncoder(properties, mock(ApplicationContext.class));
        assertTrue(e.matches("asd123", "bfd59291e825b5f2bbf1eb76569f8fe7"));
    }
This is {@link DefaultPasswordEncoderTests}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/DefaultPasswordEncoderTests.java