### Question:
EncryptionService { public String encryptPassword(String password) { return passwordEncoder.encodePassword(password, null); } EncryptionService(PasswordEncoder passwordEncoder); String encryptPassword(String password);  }### Answer:
@Test public void testEncryptPassword() { String encryptedPassword = encryptionService.encryptPassword(PASSWORD); Assert.assertEquals(encryptedPassword, PASSWORD_MD5_HASH, "Returned an incorrect hash value"); }