@Test
    void verifyPasswordEncoderBySHA256() {
        val p = new PasswordEncoderProperties();
        p.setType(PasswordEncoderProperties.PasswordEncoderTypes.DEFAULT.name());
        p.setEncodingAlgorithm("SHA-256");
        p.setCharacterEncoding("UTF-8");
        val e = PasswordEncoderUtils.newPasswordEncoder(p, mock(ApplicationContext.class));
        assertTrue(e.matches("asd123", "54d5cb2d332dbdb4850293caae4559ce88b65163f1ea5d4e4b3ac49d772ded14"));
    }
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