@Override
    public boolean supports(String hashedPassword) {
        return hashedPassword.startsWith(PREFIX) && hashedPassword.contains(SALT_PREFIX);
    }
@Test
    public void testSupports() throws Exception {
        assertThat(bCryptPasswordAlgorithm.supports("foobar")).isFalse();
        assertThat(bCryptPasswordAlgorithm.supports("{bcrypt}foobar")).isFalse();
        assertThat(bCryptPasswordAlgorithm.supports("{bcrypt}foobar{salt}pepper")).isTrue();
        assertThat(bCryptPasswordAlgorithm.supports("{foobar}foobar")).isFalse();
    }