@Override
  public void handleRequest(HttpServerExchange httpServerExchange) {
    if (!httpServerExchange.getRequestMethod().equals(HttpString.tryFromString("GET"))) {
      httpServerExchange.setStatusCode(HTTP_METHOD_NOT_ALLOWED);
      httpServerExchange.getResponseSender().send("");
    } else {
      // For now if this endpoint is reachable then the service is up.
      // There is no hard dependency that could be down.
      httpServerExchange.setStatusCode(HTTP_OK);
      httpServerExchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "application/json");
      httpServerExchange.getResponseSender().send(STATUS_UP);
    }
  }
@Test
  void get() {
    var sut = new HealthEndpoint();

    // when
    var httpServerExchange = mock(HttpServerExchange.class);
    var headers = mock(HeaderMap.class);
    var sender = mock(Sender.class);

    when(httpServerExchange.getResponseHeaders()).thenReturn(headers);
    when(httpServerExchange.getResponseSender()).thenReturn(sender);
    when(httpServerExchange.getRequestMethod()).thenReturn(HttpString.tryFromString("GET"));

    sut.handleRequest(httpServerExchange);

    // then
    verify(httpServerExchange).setStatusCode(Status.OK.getStatusCode());
  }