### Question:
Web3ClientVersion implements JsonRpcMethod { @Override public JsonRpcResponse response(final JsonRpcRequestContext requestContext) { return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), clientVersion); } Web3ClientVersion(final String clientVersion); @Override String getName(); @Override JsonRpcResponse response(final JsonRpcRequestContext requestContext);  }### Answer:
@Test public void shouldReturnCorrectResult() { final JsonRpcRequestContext request = new JsonRpcRequestContext( new JsonRpcRequest(JSON_RPC_VERSION, ETH_METHOD, new Object[] {})); final JsonRpcResponse expected = new JsonRpcSuccessResponse(request.getRequest().getId(), CLIENT_VERSION); final JsonRpcResponse actual = method.response(request); assertThat(actual).isEqualToComparingFieldByFieldRecursively(expected); }