public static Optional<PfxOptions> getPfxTrustStoreOptions(final Map<String, String> props) {
    final String location = getTrustStoreLocation(props);
    final String password = getTrustStorePassword(props);

    if (!Strings.isNullOrEmpty(location)) {
      return Optional.of(buildPfxOptions(location, password));
    }

    return Optional.empty();
  }
@Test
  public void shouldBuildTrustStorePfxOptionsWithPathAndPassword() {
    // When
    final Optional<PfxOptions> pfxOptions = VertxSslOptionsFactory.getPfxTrustStoreOptions(
        ImmutableMap.of(
            SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG,
            "path",
            SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG,
            "password"
        )
    );

    // Then
    assertThat(pfxOptions.get().getPath(), is("path"));
    assertThat(pfxOptions.get().getPassword(), is("password"));
  }