@Test(expected = IllegalArgumentException.class)
public void testCreateJsonFromConfigNullConfig() throws JSONException {

    ElasticConnectionPoolConfigurationPublisher publisher =
            new ElasticConnectionPoolConfigurationPublisher("ClientApp", "dyno_cluster_1", "unit-test-vip", config);
    publisher.createJsonFromConfig(null);
}