### Question:
GetVersion implements Handler { @OpenApi( deprecated = true, path = ROUTE, method = HttpMethod.GET, summary = "Get client version.", tags = {TAG_NODE}, description = "Returns the client version. Replaced by standard api endpoint `/eth/v1/node/version`.", responses = { @OpenApiResponse(status = RES_OK, content = @OpenApiContent(from = String.class)), @OpenApiResponse(status = RES_INTERNAL_ERROR) }) @Override public void handle(Context ctx) throws Exception { ctx.header(Header.CACHE_CONTROL, CACHE_NONE); ctx.result(jsonProvider.objectToJSON(VersionProvider.VERSION)); } GetVersion(JsonProvider jsonProvider); @OpenApi( deprecated = true, path = ROUTE, method = HttpMethod.GET, summary = "Get client version.", tags = {TAG_NODE}, description = "Returns the client version. Replaced by standard api endpoint `/eth/v1/node/version`.", responses = { @OpenApiResponse(status = RES_OK, content = @OpenApiContent(from = String.class)), @OpenApiResponse(status = RES_INTERNAL_ERROR) }) @Override void handle(Context ctx); static final String ROUTE; }### Answer:
@Test public void shouldReturnVersionString() throws Exception { GetVersion handler = new GetVersion(jsonProvider); handler.handle(context); verify(context).header(Header.CACHE_CONTROL, CACHE_NONE); verify(context).result(jsonProvider.objectToJSON(VersionProvider.VERSION)); }