### Question:
ForwardCallMethodInterceptor implements BeforeMethodSent { @Override public void beforeMethodSent(final MethodCallBuilder methodBuilder) { if (methodBuilder.getOriginatingRequest() == null) { final Optional<Request<Object>> request = requestContext.getRequest(); if (request.isPresent()) { methodBuilder.setOriginatingRequest(request.get()); } } } ForwardCallMethodInterceptor(final RequestContext requestContext); @Override void beforeMethodSent(final MethodCallBuilder methodBuilder);  }### Answer:
@Test public void test() { forwardCallMethodInterceptor.beforeMethodSent(this.methodCallBuilder); assertNotNull(methodCallBuilder.getOriginatingRequest()); final Request<Object> originatingRequest = methodCallBuilder.getOriginatingRequest(); assertTrue(originatingRequest instanceof MethodCall); assertEquals("Method 2", ((MethodCall) originatingRequest).name()); assertTrue(originatingRequest.originatingRequest() instanceof MethodCall); assertEquals("Method 1", ((MethodCall) originatingRequest.originatingRequest()).name()); assertTrue(originatingRequest.originatingRequest().originatingRequest() instanceof HttpRequest); assertEquals("/foo", ((HttpRequest) originatingRequest.originatingRequest().originatingRequest()).getUri()); }