@Test
void validateValueType() {

    assertThatThrownBy(() -> new CacheClassValidator(String.class).validate())
            .isInstanceOf(Error.class)
            .hasMessageContaining("class must be bean class");
}