@Test
public void testAuthTypeNone() throws Exception {

    final String nifiUrl = "http://localhost:8080/nifi-api/resources";
    Map<String,String> configs = new HashMap<>();
    configs.put(NiFiConfigs.NIFI_URL, nifiUrl);
    configs.put(NiFiConfigs.NIFI_AUTHENTICATION_TYPE, NiFiAuthType.NONE.name());
    NiFiClient client = NiFiConnectionMgr.getNiFiClient("nifi", configs);
    Assert.assertNotNull(client);
    Assert.assertEquals(nifiUrl, client.getUrl());
    Assert.assertNull(client.getSslContext());
}