### Question:
RabbitMQPasswordConverter { public boolean passwordMatchesHash(final String password, final String hash) { final byte[] decodedHash = base64Decoder.decode(hash); final int salt = ByteBuffer.wrap(decodedHash).getInt(); return convertPasswordToHash(password, salt).equals(hash); } RabbitMQPasswordConverter(
            final Random random,
            final MessageDigest messageDigest,
            final Base64.Encoder base64Encoder,
            final Base64.Decoder base64Decoder
    ); String convertPasswordToHash(final String password); String convertPasswordToHash(final String password, final int salt); boolean passwordMatchesHash(final String password, final String hash);  }### Answer:
@Test public void testPasswordMatchesHashMatches() { assertTrue(converter.passwordMatchesHash(PASSWORD, HASH_FROM_RABBIT)); }
@Test public void testPasswordMatchesHashDoesNotMatch() { assertFalse(converter.passwordMatchesHash(PASSWORD, "awdOVA7vfvoxZZnftimygbY4kfrvQdv9vlESjpvmMQooWDV8")); }