@Test (expected = IllegalArgumentException.class)
public void testInvalidURL() throws Exception {

    final String nifiRegistryUrl = "not a url";
    Map<String,String> configs = new HashMap<>();
    configs.put(NiFiRegistryConfigs.NIFI_REG_URL, nifiRegistryUrl);
    configs.put(NiFiRegistryConfigs.NIFI_REG_AUTHENTICATION_TYPE, NiFiRegistryAuthType.NONE.name());
    NiFiRegistryConnectionMgr.getNiFiRegistryClient("nifi-registry", configs);
}