@Test
public void generateCredential_generatesACredential() {

  final StringCredentialValue expected = new StringCredentialValue("fake-credential");
  when(passayStringCredentialGenerator.generateCredential(any(StringGenerationParameters.class)))
    .thenReturn(expected);
  final StringCredentialValue credential = subject.generateCredential();
  assertThat(credential, equalTo(expected));
}