@Test
public void generateCredential_givenAUsernameAndPasswordParameters_generatesUserWithUsernameAndGeneratedPassword() {

  passwordParameters.setUsername("test-user");
  final UserCredentialValue user = subject.generateCredential(passwordParameters);
  assertThat(user.getUsername(), equalTo("test-user"));
  assertThat(user.getPassword(), equalTo("fake-generated-password"));
  assertThat(user.getSalt(), equalTo("fake-generated-salt"));
}