@Test
public void parsesContentLanguageHeader() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.putSingle(CONTENT_LANGUAGE, "en-GB");
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    assertEquals(new Locale("en", "GB"), response.getLanguage());
}