public static boolean isWebService(Optional<String> serviceName) {
    return serviceName.isPresent()
        && IS_PLAIN_HTTP_BY_KNOWN_WEB_SERVICE_NAME.containsKey(
            Ascii.toLowerCase(serviceName.get()));
  }
@Test
  public void isWebService_whenCapitalizedHttpService_ignoresCaseAndReturnsTrue() {
    assertThat(
            NetworkServiceUtils.isWebService(
                NetworkService.newBuilder().setServiceName("HTTP").build()))
        .isTrue();
  }