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

    final String nifiUrl = "https://localhost:8080/nifi-api/resources";
    Map<String,String> configs = new HashMap<>();
    configs.put(NiFiConfigs.NIFI_URL, nifiUrl);
    configs.put(NiFiConfigs.NIFI_AUTHENTICATION_TYPE, NiFiAuthType.SSL.name());
    configs.put(NiFiConfigs.NIFI_SSL_KEYSTORE, "src/test/resources/missing.jks");
    configs.put(NiFiConfigs.NIFI_SSL_KEYSTORE_PASSWORD, "password");
    configs.put(NiFiConfigs.NIFI_SSL_KEYSTORE_TYPE, "JKS");
    configs.put(NiFiConfigs.NIFI_SSL_TRUSTSTORE, "src/test/resources/missing.jks");
    configs.put(NiFiConfigs.NIFI_SSL_TRUSTSTORE_PASSWORD, "password");
    configs.put(NiFiConfigs.NIFI_SSL_TRUSTSTORE_TYPE, "JKS");
    NiFiConnectionMgr.getNiFiClient("nifi", configs);
}