### Question:
Result implements Status { public Result noCache() { with(HeaderNames.CACHE_CONTROL, HeaderNames.NOCACHE_VALUE); with(HeaderNames.DATE, DateUtil.formatForHttpHeader(System.currentTimeMillis())); with(HeaderNames.EXPIRES, DateUtil.formatForHttpHeader(0L)); return this; } Result(int statusCode);  Result(); Renderable<?> getRenderable(); Result render(Renderable<?> renderable); Result render(Object object); Result render(JsonNode node); Result render(String padding, JsonNode node); Result render(Document document); Result render(String content); Result render(CharSequence content); Result render(StringBuilder content); Result render(StringBuffer content); String getContentType(); Charset getCharset(); Result with(Charset charset); String getFullContentType(); Result as(String contentType); Map<String, String> getHeaders(); Result with(String headerName, String headerContent); Cookie getCookie(String cookieName); List<Cookie> getCookies(); Result with(Cookie cookie); Result without(String name); Result withoutCompression(); Result discard(String name); Result discard(String... names); int getStatusCode(); Result status(int statusCode); Result redirect(String url); Result redirectTemporary(String url); Result html(); Result json(); Result xml(); Result noCache(); Result noContentIfNone(); Result addToSession(String key, String value); Result addToFlash(String key, String value);  }### Answer:
@Test public void testNoCache() throws Exception { Result result = new Result(200); result.noCache(); assertThat(result.getHeaders()).containsEntry(HeaderNames.CACHE_CONTROL, HeaderNames.NOCACHE_VALUE); }