static SVNClientManager newSvnClientManager(SvnConfiguration configuration) {
    ISVNOptions options = SVNWCUtil.createDefaultOptions(true);
    final char[] passwordValue = getCharsOrNull(configuration.password());
    final char[] passPhraseValue = getCharsOrNull(configuration.passPhrase());
    ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(
      null,
      configuration.username(),
      passwordValue,
      configuration.privateKey(),
      passPhraseValue,
      false);
    return SVNClientManager.newInstance(options, authManager);
  }
@Test
  public void newSvnClientManager_whenPasswordConfigured_shouldNotReturnNull() {
    when(config.password()).thenReturn("password");
    when(config.passPhrase()).thenReturn("passPhrase");

    assertThat(newSvnClientManager(config)).isNotNull();
  }