### Question:
PortalCookies { public String getTenantCookieFromRequest(HttpServletRequest request) { return getCookieValue(request, TENANT_COOKIE_NAME); }  void addCSRFTokenCookieToResponse(HttpServletRequest request, HttpServletResponse res, Object apiTokenFromClient); void invalidateRootCookie(HttpServletResponse res, Cookie cookie, String path); boolean isCSRFTokenCookieSecure(); void addTenantCookieToResponse(HttpServletResponse response, Long tenantId); String getTenantCookieFromRequest(HttpServletRequest request); Cookie getCookie(HttpServletRequest request, String name);  }### Answer:
@Test public void should_get_tenant_cookie_from_request() throws Exception { request.setCookies(new Cookie("bonita.tenant", "123")); String tenant = portalCookies.getTenantCookieFromRequest(request); assertThat(tenant).isEqualTo("123"); }