@Test
public void testAuthTypeNone() throws Exception {

    final String nifiRegistryUrl = "http://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.NONE.name());
    NiFiRegistryClient client = NiFiRegistryConnectionMgr.getNiFiRegistryClient("nifi", configs);
    Assert.assertNotNull(client);
    Assert.assertEquals(nifiRegistryUrl, client.getUrl());
    Assert.assertNull(client.getSslContext());
}