CurrentJobIdsHandler extends AbstractJsonRequestHandler { @Override public String[] getPaths() { return new String[]{CURRENT_JOB_IDS_REST_PATH}; } CurrentJobIdsHandler(Executor executor, Time timeout); @Override String[] getPaths(); @Override CompletableFuture<String> handleJsonRequest(Map<String, String> pathParams, Map<String, String> queryParams, JobManagerGateway jobManagerGateway);  }
@Test public void testGetPaths() { CurrentJobIdsHandler handler = new CurrentJobIdsHandler(Executors.directExecutor(), Time.seconds(0L)); String[] paths = handler.getPaths(); Assert.assertEquals(1, paths.length); Assert.assertEquals("/jobs", paths[0]); }