public static Service getService(String serviceJndiName) {
    var serviceObj = serviceCache.getService(serviceJndiName);
    if (serviceObj == null) {
      /*
       * If we are unable to retrieve anything from cache, then lookup the service and add it in the
       * cache map
       */
      var ctx = new InitContext();
      serviceObj = (Service) ctx.lookup(serviceJndiName);
      if (serviceObj != null) { // Only cache a service if it actually exists
        serviceCache.addService(serviceObj);
      }
    }
    return serviceObj;
  }
@Test
  void testServiceCache() {
    final var serviceNames = List.of("jndi/serviceA", "jndi/serviceB");

    for (final var serviceName : serviceNames) {
      final var service = ServiceLocator.getService(serviceName);
      assertNotNull(service);
      assertEquals(serviceName, service.getName());
      assertTrue(service.getId() > 0); // The id is generated randomly, but the minimum value is '1'
      assertSame(service, ServiceLocator.getService(serviceName));
    }

  }