### Question:
CaffeineRestTemplateCookieStore implements RestTemplateCookieStore { @Override public boolean remove( @Nonnull String authorizationHeaderValue, @Nonnull String cookieValue ) { final String currentCookieValue = cookieStore.getIfPresent( authorizationHeaderValue ); if ( (currentCookieValue != null) && currentCookieValue.equals( cookieValue ) ) { cookieStore.invalidate( authorizationHeaderValue ); return true; } return false; } 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 remove() { cookieStore.add( "Basic jsdhuwjwl", "JESSIONID=82738289" ); cookieStore.add( "Basic jsdhuwjwa", "JESSIONID=82738279" ); cookieStore.remove( "Basic jsdhuwjwa", "JESSIONID=82738279" ); Assert.assertEquals( "JESSIONID=82738289", cookieStore.get( "Basic jsdhuwjwl" ) ); Assert.assertNull( cookieStore.get( "Basic jsdhuwjwa" ) ); }