code: public static BoundedPoolConfig bounded(GenericObjectPoolConfig<?> config) {
  
          LettuceAssert.notNull(config, "GenericObjectPoolConfig must not be null");
  
          return BoundedPoolConfig.builder().maxTotal(config.getMaxTotal()).maxIdle(config.getMaxIdle())
                  .minIdle(config.getMinIdle()).testOnAcquire(config.getTestOnBorrow()).testOnCreate(config.getTestOnCreate())
                  .testOnRelease(config.getTestOnReturn()).build();
      }
docs: Converts {@link GenericObjectPoolConfig} properties to an immutable {@link BoundedPoolConfig}. Applies max total, min/max
  idle and test on borrow/create/release configuration.
  
  @param config must not be {@literal null}.
  @return the converted {@link BoundedPoolConfig}.