ClusterConfigHandler extends AbstractJsonRequestHandler implements LegacyRestHandler<DispatcherGateway, ClusterConfigurationInfo, EmptyMessageParameters> { @Override public String[] getPaths() { return new String[]{ClusterConfigurationInfoHeaders.CLUSTER_CONFIG_REST_PATH}; } ClusterConfigHandler(Executor executor, Configuration config); @Override String[] getPaths(); @Override CompletableFuture<ClusterConfigurationInfo> handleRequest(
			HandlerRequest<EmptyRequestBody, EmptyMessageParameters> request,
			DispatcherGateway gateway); @Override CompletableFuture<String> handleJsonRequest(
			Map<String, String> pathParams,
			Map<String, String> queryParams,
			JobManagerGateway jobManagerGateway);  }
@Test public void testGetPaths() { ClusterConfigHandler handler = new ClusterConfigHandler(Executors.directExecutor(), new Configuration()); String[] paths = handler.getPaths(); Assert.assertEquals(1, paths.length); Assert.assertEquals("/jobmanager/config", paths[0]); }