@Test(expected = FileNotFoundException.class)
public void testAuthTypeSSL() throws Exception {

    final String nifiRegistryUrl = "https://localhost:18080/nifi-registry-api/policies/resources";
    Map<String,String> configs = new HashMap<>();
    configs.put(NiFiRegistryConfigs.NIFI_REG_URL, nifiRegistryUrl);
    configs.put(NiFiRegistryConfigs.NIFI_REG_AUTHENTICATION_TYPE, NiFiRegistryAuthType.SSL.name());
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_KEYSTORE, "src/test/resources/missing.jks");
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_KEYSTORE_PASSWORD, "password");
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_KEYSTORE_TYPE, "JKS");
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_TRUSTSTORE, "src/test/resources/missing.jks");
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_TRUSTSTORE_PASSWORD, "password");
    configs.put(NiFiRegistryConfigs.NIFI_REG_SSL_TRUSTSTORE_TYPE, "JKS");
    NiFiRegistryConnectionMgr.getNiFiRegistryClient("nifi-registry", configs);
}