@Test void httpCollectorEndpointReturns404() throws Exception {
    Response response = client.newCall(new Request.Builder()
      .url(url(server, "/api/v2/spans"))
      .post(RequestBody.create("[]", MediaType.parse("application/json")))
      .build()).execute();

    assertThat(response.code()).isEqualTo(404);
  }
Query-only builds should be able to disable the HTTP collector, so that associated assets 404
instead of allowing creation of spans.
zipkin-server/src/test/java/zipkin2/server/internal/ITZipkinServerHttpCollectorDisabled.java