### Question:
HttpRequestedTimeResolver extends SingleComponentResolver<HttpCommand, Ignore> { @Override public void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder) { Date requestTime = requestTimeResolver.resolveRequestTime(httpCommand.getRequest()); builder.setRequestTime(requestTime); } HttpRequestedTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); @Override void resolve(HttpCommand httpCommand, Ignore ignore, DehydratedExecutionContextBuilder builder);  }### Answer:
@Test public void requestTimeResolverCalled() { Date d = new Date(); when(requestTimeResolver.resolveRequestTime(request)).thenReturn(d); requestedTimeResolver.resolve(httpCommand, null, builder); assertEquals(d, builder.getRequestTime()); }