RedisConfig extends Config { public Redis client() { return redis; }  void host(String host); void poolSize(int minSize, int maxSize); void slowOperationThreshold(Duration threshold); void timeout(Duration timeout); Redis client();  }
@Test void client() { config.host("localhost"); config.poolSize(0, 0); config.slowOperationThreshold(Duration.ofSeconds(1)); config.timeout(Duration.ofSeconds(5)); assertThat(config.client()).isNotNull(); config.validate(); }