### Question:
KieServerInfoHandler implements HttpHandler { public static String getLocationUrl() { String externalUrl = System.getProperty(KieServerRouterConstants.ROUTER_EXTERNAL_URL); if(externalUrl == null) { StringBuilder sb = new StringBuilder(); sb.append("http: sb.append(System.getProperty(KieServerRouterConstants.ROUTER_HOST, "localhost")); sb.append(":"); sb.append(System.getProperty(KieServerRouterConstants.ROUTER_PORT, "9000")); externalUrl = sb.toString(); } return externalUrl; }  @Override void handleRequest(HttpServerExchange exchange); static String getLocationUrl(); static String getRouterId(); static String getRouterName();  }### Answer:
@Test public void testGetLocationUrl() { String locationUrl = KieServerInfoHandler.getLocationUrl(); assertEquals("http: }
@Test public void testGetLocationUrlExternalLocation() { System.setProperty(KieServerRouterConstants.ROUTER_EXTERNAL_URL, "https: String locationUrl = KieServerInfoHandler.getLocationUrl(); assertEquals("https: }