1 package it.com.atlassian.rest.headers;
2
3 import static org.junit.Assert.*;
4
5 import org.junit.Test;
6
7 import com.atlassian.rest.jersey.client.WebResourceFactory;
8 import com.sun.jersey.api.client.ClientResponse;
9
10 public class LangTest {
11 @Test
12 public void testUMM49codes() {
13
14
15 ClientResponse response = WebResourceFactory.anonymous(WebResourceFactory.REST_VERSION)
16 .path("helloworld").path("locale")
17 .acceptLanguage("es-419")
18 .get(ClientResponse.class);
19
20
21
22
23 assertEquals(200, response.getStatus());
24 }
25 }