@Test
public void testHttpResponseCacheControlWithExpressions() throws Exception
{
HttpResponseBuilder httpResponseBuilder = createHttpResponseBuilder();
CacheControlHeader cacheControl = new CacheControlHeader();
cacheControl.setDirective(HEADER_DIRECTIVE);
cacheControl.setMaxAge(HEADER_MAX_AGE);
cacheControl.setMustRevalidate(HEADER_MUST_REVALIDATE);
cacheControl.setNoCache(HEADER_NO_CACHE);
cacheControl.setNoStore(HEADER_NO_STORE);
httpResponseBuilder.setCacheControl(cacheControl);
when(mockExpressionManager.parse(HEADER_DIRECTIVE, mockMuleMessage)).thenReturn("public");
when(mockExpressionManager.parse(HEADER_MAX_AGE, mockMuleMessage)).thenReturn("3600");
when(mockExpressionManager.parse(HEADER_MUST_REVALIDATE, mockMuleMessage)).thenReturn("true");