@Test
public void generateCredential_shouldUseTheProvidedKeyLength() throws Exception {

  final SshGenerationParameters sshGenerationParameters = new SshGenerationParameters();
  sshGenerationParameters.setKeyLength(4096);
  subject.generateCredential(sshGenerationParameters);
  verify(keyPairGeneratorMock).generateKeyPair(4096);
}