when(mockExpressionManager.isExpression("#[now]")).thenReturn(true);
when(mockExpressionManager.evaluate("#[now]", mockMuleMessage)).thenReturn(now);
when(mockExpressionManager.parse("test", mockMuleMessage)).thenReturn("test");
when(mockExpressionManager.parse("test", mockMuleMessage)).thenReturn("test");
HttpResponse response = new HttpResponse();
httpResponseBuilder.setCookies(response, mockMuleMessage);
SimpleDateFormat httpCookieFormatter = new SimpleDateFormat(CookieHelper.EXPIRE_PATTERN, Locale.US);
httpCookieFormatter.setTimeZone(TimeZone.getTimeZone("GMT"));
String expectedCookieValue = "test=test; Expires=" + httpCookieFormatter.format(now);
validateHeader(response.getHeaders(), HttpConstants.HEADER_COOKIE_SET, expectedCookieValue);
}