### Question:
RequestTrackingHostValve extends ValveBase { protected String getSessionCookieName() { return _sessionCookieName; } RequestTrackingHostValve( @Nullable final String ignorePattern, @Nonnull final String sessionCookieName,
            @Nonnull final MemcachedSessionService sessionBackupService,
            @Nonnull final Statistics statistics,
            @Nonnull final AtomicBoolean enabled,
            @Nonnull final CurrentRequest currentRequest); boolean isIgnoredRequest(); @Override void invoke( final Request request, final Response response ); static final String REQUEST_PROCESS; static final String SESSION_ID_CHANGED; static final String REQUEST_PROCESSED; }### Answer:
@Test public final void testGetSessionCookieName() throws IOException, ServletException { final RequestTrackingHostValve cut = new RequestTrackingHostValve(null, "foo", _service, Statistics.create(), new AtomicBoolean( true ), new CurrentRequest()) { @Override protected String[] getSetCookieHeaders(final Response response) { final Collection<String> result = response.getHeaders("Set-Cookie"); return result.toArray(new String[result.size()]); } }; assertEquals(cut.getSessionCookieName(), "foo"); }