### Question:
AdminMasterRoute extends BaseRoute { public List<Configlet> getConfigs() { return configs; } AdminMasterRoute(final MasterDescription masterDescription); List<Configlet> getConfigs(); @Override Route createRoute(Function<Route, Route> routeFilter);  }### Answer:
@Test public void testMasterConfigAPI() throws InterruptedException { final CountDownLatch latch = new CountDownLatch(1); final CompletionStage<HttpResponse> responseFuture = http.singleRequest( HttpRequest.GET(masterEndpoint("masterConfigs"))); responseFuture .thenCompose(r -> processRespFut(r, 200)) .whenComplete((msg, t) -> { try { String responseMessage = getResponseMessage(msg, t); logger.info("got response {}", responseMessage); List<AdminMasterRoute.Configlet> masterconfig = Jackson.fromJSON(responseMessage, new TypeReference<List<AdminMasterRoute.Configlet>>() {}); logger.info("master config ---> {}", masterconfig); assertEquals(masterDescRoute.getConfigs(), masterconfig); } catch (Exception e) { fail("unexpected error "+ e.getMessage()); } latch.countDown(); }); assertTrue(latch.await(2, TimeUnit.SECONDS)); }