### Question:
JsonRpcHttpService { @VisibleForTesting public String url() { if (httpServer == null) { return ""; } return NetworkUtility.urlForSocketAddress(getScheme(), socketAddress()); } JsonRpcHttpService(
      final Vertx vertx,
      final Path dataDir,
      final JsonRpcConfiguration config,
      final MetricsSystem metricsSystem,
      final NatService natService,
      final Map<String, JsonRpcMethod> methods,
      final HealthService livenessService,
      final HealthService readinessService); private  JsonRpcHttpService(
      final Vertx vertx,
      final Path dataDir,
      final JsonRpcConfiguration config,
      final MetricsSystem metricsSystem,
      final NatService natService,
      final Map<String, JsonRpcMethod> methods,
      final Optional<AuthenticationService> authenticationService,
      final HealthService livenessService,
      final HealthService readinessService); CompletableFuture<?> start(); CompletableFuture<?> stop(); InetSocketAddress socketAddress(); @VisibleForTesting String url(); @VisibleForTesting final Optional<AuthenticationService> authenticationService; }### Answer:
@Test public void handleLoginRequestWithAuthDisabled() throws Exception { final RequestBody body = RequestBody.create(JSON, "{\"username\":\"user\",\"password\":\"pass\"}"); final Request request = new Request.Builder().post(body).url(baseUrl + "/login").build(); try (final Response resp = client.newCall(request).execute()) { assertThat(resp.code()).isEqualTo(400); assertThat(resp.message()).isEqualTo("Authentication not enabled"); } }