### Question:
RabbitMQPasswordConverter { public String convertPasswordToHash(final String password) { return convertPasswordToHash(password, random.nextInt()); } 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 testConvertPasswordToHash() { final String hash = converter.convertPasswordToHash(PASSWORD); assertEquals(HASH_FROM_RABBIT, hash); }