package com.axibase.tsd.client;

import com.axibase.tsd.TestUtil;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

public class UserAgentTest {
    private HttpClientManager client;

    @Before
    public void init() {
        client = TestUtil.buildHttpClientManager();
    }

    @Test
    public void testUserAgent() {
        final String actual = client.getClientConfiguration().getClientName();
        final String message = "User-agent value is different from default";
        Assert.assertEquals(message, "atsd-api-java", actual);
    }
}

@@ -59,16 +59,61 @@
 stUtil;%0A
+import org.apache.commons.lang3.StringUtils;%0A
 import o
@@ -583,23 +583,25 @@
 ge, 
-%22atsd-api-java%22
+StringUtils.EMPTY
 , ac

fix not set header