package fixtures.azurespecials;

import com.microsoft.rest.ServiceResponse;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

public class HeaderOperationsTests {
    private static AutoRestAzureSpecialParametersTestClient client;

    @BeforeClass
    public static void setup() {
        client = new AutoRestAzureSpecialParametersTestClientImpl("http://localhost.:3000");
    }

    @Test
    public void customNamedRequestId() throws Exception {
        ServiceResponse<Void> response = client.getHeaderOperations().customNamedRequestId("9C4D50EE-2D56-4CD3-8152-34347DC9F2B0");
        Assert.assertEquals(200, response.getResponse().code());
    }
}

@@ -67,16 +67,99 @@
 Response
+WithHeaders;%0Aimport fixtures.azurespecials.models.HeaderCustomNamedRequestIdHeaders
 ;%0Aimport
@@ -582,13 +582,59 @@
 onse
-%3CVoid
+WithHeaders%3CVoid, HeaderCustomNamedRequestIdHeaders
 %3E re
@@ -798,16 +798,93 @@
 ode());%0A
+        Assert.assertEquals(%22123%22, response.getHeaders().getFooRequestId());%0A
     %7D%0A%7D%0A

Add test on response typed headers