@Override
  public List<HttpCookie> getRequestCookies()
  {
    return _requestCookies;
  }
@Test
  public void testCookiesLocalAttr() throws Exception
  {
    URI uri = URI.create("resources");

    RequestContext requestContext = new RequestContext();
    List<HttpCookie> localCookies = Collections.singletonList(new HttpCookie("test", "value"));
    requestContext.putLocalAttr(ServerResourceContext.CONTEXT_COOKIES_KEY, localCookies);

    ServerResourceContext resourceContext = new ResourceContextImpl(
        new PathKeysImpl(), new TestResourceContext.MockRequest(uri), requestContext);

    // Assert that request cookies are retrieved from the local attribute.
    Assert.assertSame(resourceContext.getRequestCookies(), localCookies);
  }