### Question:
CompatiblePasswordEncoder implements PasswordEncoder { @Override public String encode(CharSequence password) { return BCRYPT_PREFIX + bcryptEncoder.encode(password); } @Autowired  CompatiblePasswordEncoder(BCryptPasswordEncoder bcryptEncoder,
            Argon2PasswordEncoder argon2Encoder, LegacyPasswordEncryptor legacyEncryptor); @Override String encode(CharSequence password); @Override boolean matches(CharSequence password, String encodedPassword); static boolean isBCrypt(String encodedPassword); static boolean isArgon2(String encodedPassword);  }### Answer:
@Test public void testBCrypt() { testMatches("{bcrypt}" + bcryptEncoder.encode(SECRET)); }
@Test public void testArgon2() throws Exception { testMatches(argon2Encoder.encode(SECRET)); }