@Test
public void testValueOf() {

    AcceptLanguage acceptLanguage = acceptLanguage("en", "us");
    when(headerDelegate.fromString("en-us")).thenReturn(acceptLanguage);
    assertSame(acceptLanguage, AcceptLanguage.valueOf("en-us"));
}