CacheClassValidator { public void validate() { validator.validate(); } CacheClassValidator(Class<?> cacheClass); void validate();  }
@Test void validate() { new CacheClassValidator(TestCache.class).validate(); }
@Test void validateValueType() { assertThatThrownBy(() -> new CacheClassValidator(String.class).validate()) .isInstanceOf(Error.class) .hasMessageContaining("class must be bean class"); }