### Question:
CaffeineRestTemplateCookieStore implements RestTemplateCookieStore { @Override public void setCookieName( @Nonnull String cookieName ) { this.cookieName = cookieName; } CaffeineRestTemplateCookieStore();  CaffeineRestTemplateCookieStore( long maxCookieLifetimeMillis ); @Nullable @Override String getCookieName(); @Override void setCookieName( @Nonnull String cookieName ); @Override void add( @Nonnull String authorizationHeaderValue, @Nonnull String cookieValue ); @Nullable @Override String get( @Nonnull String authorizationHeaderValue ); @Override boolean remove( @Nonnull String authorizationHeaderValue, @Nonnull String cookieValue ); static final long DEFAULT_MAX_COOKIE_LIFETIME_MILLIS; }### Answer:
@Test public void setCookieName() { Assert.assertNull( cookieStore.getCookieName() ); cookieStore.setCookieName( "XSESSION" ); Assert.assertEquals( "XSESSION", cookieStore.getCookieName() ); }